/**
  * Deletes an event from the database.
  *
  * @param  $id - Id of the events to be deleted
  * @return Response
  * @throws ResourceNotFoundException
  */
 public function delete($id)
 {
     $id = $this->filter->sanitize($id, 'int');
     try {
         $event = Event::findFirstOrFail(['id = ?0', 'bind' => [$id]]);
         return $this->response($this->request, $event);
     } catch (ResourceNotFoundException $e) {
         return $e->returnResponse();
     }
 }