protected function _actionDelete($context)
    {
        $context->response->status = AnHttpResponse::NO_CONTENT;
        $this->getItem()->delete();
        $context->response->setRedirect(route($this->getItem()->owner->getURL()));
    }
protected function _actionDelete($context)
    {
        $context->response->status = AnHttpResponse::NO_CONTENT;
        $this->getItem()->delete();
        $context->response->setRedirect(route($this->getItem()->owner->getURL()));
    }
protected function _actionDelete ( $ context ) { $ context -> response -> status = AnHttpResponse :: NO_CONTENT ; $ this -> getItem ( ) -> delete ( ) ; $ context -> response -> setRedirect ( route ( $ this -> getItem ( ) -> owner -> getURL ( ) ) ) ; }
Delete a story.

@return bool
Delete a story .