Delete a Fax Media
Use this endpoint for the Fax Media method to delete a fax media instance. If the delete is successful, a 204 response, with no body, will be returned.
warning
This action cannot be undone.
Parameters
Parameter | Description |
---|---|
MediaSid Required | The unique identifier of the fax media. |
Request
- cURL
- Node.js
- C#
- Python
- Ruby
curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Faxes/{FaxSid}/Media/{MediaSid}.json \
-X DELETE \
-u "YourProjectID:YourAuthToken"
const { RestClient } = require('@signalwire/compatibility-api')
const client = RestClient('YourProjectID', 'YourAuthToken', { signalwireSpaceUrl: 'example.signalwire.com' })
client.fax.faxes('FaxSid')
.media('MediaSid')
.remove()
.then(media => console.log(media.sid))
.done();
using System;
using System.Collections.Generic;
using Twilio;
using Twilio.Rest.Fax.V1.Fax;
class Program
{
static void Main(string[] args)
{
TwilioClient.Init("YourProjectID", "YourAuthToken", new Dictionary<string, object> { ["signalwireSpaceUrl"] = "{SPACE}.signalwire.com" });
FaxMediaResource.Delete(
pathFaxSid: "FaxSid",
pathSid: "MediaSid"
);
}
}
from signalwire.rest import Client as signalwire_client
client = signalwire_client("YourProjectID", "YourAuthToken", signalwire_space_url = 'example.signalwire.com')
client.fax.faxes('FaxSid') \
.media('MediaSid') \
.delete()
require 'signalwire/sdk'
@client = Signalwire::REST::Client.new 'YourProjectID', 'YourAuthToken', signalwire_space_url: "example.signalwire.com"
@client.faxes('FaxSid')
.media('MediaSid')
.delete
Responses
204 NO CONTENT
If the delete is successful, a 204 response, with no body, will be returned.