Scalr\Api\Service\Account\V1beta0\Controller\Teams::deleteAction PHP Method

deleteAction() public method

Delete an Account Team
public deleteAction ( integer $teamId ) : Scalr\Api\DataType\ResultEnvelope
$teamId integer Identifier of the Team
return Scalr\Api\DataType\ResultEnvelope
    public function deleteAction($teamId)
    {
        if (!$this->getUser()->canManageAcl()) {
            throw new ApiInsufficientPermissionsException();
        }
        $this->getTeam($teamId)->delete();
        return $this->result(null);
    }