/**
  * Delete one or more entries
  *
  * @return  void
  */
 public function deleteTask()
 {
     // [SECURITY] Check for request forgeries
     Request::checkToken();
     // Incoming
     $ids = Request::getVar('id', array());
     $ids = !is_array($ids) ? array($ids) : $ids;
     // Do we actually have any entries?
     if (count($ids) > 0) {
         // Loop through all the IDs
         foreach ($ids as $id) {
             // Get the model for this entry
             $entry = new Models\Api\Application(intval($id));
             // Delete the entry
             if (!$entry->delete()) {
                 // If the deletion process fails for any reason, we'll take the
                 // error message passed from the model and assign it to the message
                 // handler to be displayed by the template after we redirect back
                 // to the main listing.
                 Notify::error($entry->getError());
             }
         }
     }
     // Set the redirect URL to the main entries listing.
     App::redirect(Route::url('index.php?option=' . $this->_option . '&controller=' . $this->_controller, false), Lang::txt('COM_DEVELOPER_APPLICATIONS_DELETED'));
 }