public function deleteQueuedTask($tasks = []) {
		if (empty($tasks) || !is_array($tasks)) {
			return false;
		}

		if (!CakeSession::check($this->_sessionKey)) {
			return false;
		}

		$existsTasks = CakeSession::read($this->_sessionKey);
		if (empty($existsTasks)) {
			return false;
		}
		$resultTasks = array_values(array_diff((array)$existsTasks, $tasks));

		return CakeSession::write($this->_sessionKey, $resultTasks);
	}
public function deleteQueuedTask($tasks = []) {
		if (empty($tasks) || !is_array($tasks)) {
			return false;
		}

		if (!CakeSession::check($this->_sessionKey)) {
			return false;
		}

		$existsTasks = CakeSession::read($this->_sessionKey);
		if (empty($existsTasks)) {
			return false;
		}
		$resultTasks = array_values(array_diff((array)$existsTasks, $tasks));

		return CakeSession::write($this->_sessionKey, $resultTasks);
	}
public function deleteQueuedTask ( $ tasks = [ ] ) { if ( empty ( $ tasks ) || ! is_array ( $ tasks ) ) { return false ; } if ( ! CakeSession :: check ( $ this -> _sessionKey ) ) { return false ; } $ existsTasks = CakeSession :: read ( $ this -> _sessionKey ) ; if ( empty ( $ existsTasks ) ) { return false ; } $ resultTasks = array_values ( array_diff ( ( array ) $ existsTasks , $ tasks ) ) ; return CakeSession :: write ( $ this -> _sessionKey , $ resultTasks ) ; }
Delete queued tasks.

@param array $tasks List of tasks to delete
@return bool Success.
Delete queued tasks .