public function deleteAction($teamId) { if (!$this->getUser()->canManageAcl()) { throw new ApiInsufficientPermissionsException(); } $this->getTeam($teamId)->delete(); return $this->result(null); }