Delete a Participant
Use this endpoint for the Conference Participants method to delete a participant, removing them from the conference call. If the delete is successful, a 204 response, with no body, will be returned.
Parameters
Parameter | Description |
---|---|
AccountSid Required | The unique identifier for the account that created this conference. |
CallSid Required | The unique identifier for the Participant call connected to this conference. |
ConferenceSid Required | The unique identifier for the conference this participant is in. |
Request
- cURL
- Node.js
- C#
- Python
- Ruby
curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json \
-X DELETE \
-u "YourProjectID:YourAuthToken"
const { RestClient } = require('@signalwire/compatibility-api')
const client = RestClient('YourProjectID', 'YourAuthToken', { signalwireSpaceUrl: 'example.signalwire.com' })
client.conferences('ConferenceSid')
.participants('CallSid')
.remove()
.then(participant => console.log(participant.callSid))
.done();
using System;
using System.Collections.Generic;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Conference;
class Program
{
static void Main(string[] args)
{
TwilioClient.Init("YourProjectID", "YourAuthToken", new Dictionary<string, object> { ["signalwireSpaceUrl"] = "{SPACE}.signalwire.com" });
ParticipantResource.Delete(
pathConferenceSid: "ConferenceSid",
pathCallSid: "CallSid"
);
}
}
from signalwire.rest import Client as signalwire_client
client = signalwire_client("YourProjectID", "YourAuthToken", signalwire_space_url = 'example.signalwire.com')
client.conferences('ConferenceSid') \
.participants('CallSid') \
.delete()
require 'signalwire/sdk'
@client = Signalwire::REST::Client.new 'YourProjectID', 'YourAuthToken', signalwire_space_url: "example.signalwire.com"
@client.conferences('ConferenceSid')
.participants('CallSid')
.delete
Responses
204 No Content
If the delete is successful, a 204 response, with no body, will be returned.