/** * Shorthand delete an object if it is instantiated with app context. * * @return Response|null * @throws Exception */ public function delete() { if ($this->_application === null) { throw new Exception('->delete() is only available on objects that have an injected application context.'); } return $this->_application->delete($this); }