public deleteAction ( integer $teamId ) : Scalr\Api\DataType\ResultEnvelope | ||
$teamId | integer | Identifier of the Team |
Результат | Scalr\Api\DataType\ResultEnvelope |
public function deleteAction($teamId)
{
if (!$this->getUser()->canManageAcl()) {
throw new ApiInsufficientPermissionsException();
}
$this->getTeam($teamId)->delete();
return $this->result(null);
}