protected function deleteAction()
 {
     if ($this->sticky_model->delete($this->sticky_id)) {
         $this->response = array('id' => $this->sticky_id);
         $this->log('sticky_delete', 1);
     } else {
         $this->errors = _w("Error while delete sticky");
     }
 }
 public function execute()
 {
     $id = $this->post('id', true);
     $this->getSticky($id);
     $sticky_model = new stickiesStickyModel();
     if ($sticky_model->delete($id)) {
         $this->response = true;
     } else {
         throw new waAPIException('server_error', 500);
     }
 }