public function delete($subAuthId, $cascade = null)
    {
        $data = [
            'cascade' => $cascade
        ];
        $response = $this->client->delete(
            $this->uri . $subAuthId . '/',
            $data
        );

        return new ResponseDelete($response->getStatusCode());
    }
public function delete($subAuthId, $cascade = null)
    {
        $data = [
            'cascade' => $cascade
        ];
        $response = $this->client->delete(
            $this->uri . $subAuthId . '/',
            $data
        );

        return new ResponseDelete($response->getStatusCode());
    }
public function delete ( $ subAuthId , $ cascade = null ) { $ data = [ 'cascade' => $ cascade ] ; $ response = $ this -> client -> delete ( $ this -> uri . $ subAuthId . '/' , $ data ) ; return new ResponseDelete ( $ response -> getStatusCode ( ) ) ; }
Delete a subaccount

@param string $subAuthId The auth ID of the subaccount to delete
@param string|null $cascade Specify if the applications, phone numbers and endpoints
associated with this subaccount be deleted or not. Takes a value of True or False.
@return ResponseDelete
Delete a subaccount