public function delete() {
		$this->request->allowMethod('post', 'delete');
		$data = $this->request->query;
		if (empty($data)) {
			throw new InternalErrorException(__d('cake_settings_app', 'Invalid task'));
		}

		if ($this->QueueInfo->deleteTasks($data)) {
			$this->Flash->success(__d('cake_settings_app', 'The task has been deleted.'));
		} else {
			$this->Flash->error(__d('cake_settings_app', 'The task could not be deleted. Please, try again.'));
		}

		$urlRedirect = ['plugin' => 'cake_settings_app', 'controller' => 'queues', 'action' => 'index'];
		return $this->redirect($urlRedirect);
	}
public function delete() {
		$this->request->allowMethod('post', 'delete');
		$data = $this->request->query;
		if (empty($data)) {
			throw new InternalErrorException(__d('cake_settings_app', 'Invalid task'));
		}

		if ($this->QueueInfo->deleteTasks($data)) {
			$this->Flash->success(__d('cake_settings_app', 'The task has been deleted.'));
		} else {
			$this->Flash->error(__d('cake_settings_app', 'The task could not be deleted. Please, try again.'));
		}

		$urlRedirect = ['plugin' => 'cake_settings_app', 'controller' => 'queues', 'action' => 'index'];
		return $this->redirect($urlRedirect);
	}
public function delete ( ) { $ this -> request -> allowMethod ( 'post' , 'delete' ) ; $ data = $ this -> request -> query ; if ( empty ( $ data ) ) { throw new InternalErrorException ( __d ( 'cake_settings_app' , 'Invalid task' ) ) ; } if ( $ this -> QueueInfo -> deleteTasks ( $ data ) ) { $ this -> Flash -> success ( __d ( 'cake_settings_app' , 'The task has been deleted.' ) ) ; } else { $ this -> Flash -> error ( __d ( 'cake_settings_app' , 'The task could not be deleted. Please, try again.' ) ) ; } $ urlRedirect = [ 'plugin' => 'cake_settings_app' , 'controller' => 'queues' , 'action' => 'index' ] ; return $ this -> redirect ( $ urlRedirect ) ; }
Action `delete`. Used to delete task from queue

@throws InternalErrorException if data of query is empty
@return void
Action delete . Used to delete task from queue