Delete an Address
Permanently delete an Address
.
API Endpoint
DELETE
https://api.plivo.com/v1/Account/{auth_id}/Verification/Address/{id}/
Arguments
No arguments need to be passed.
Response
HTTP Status Code: 204
Example Request
1
2
3
4
5
6
7
8
9
10
11
12
import plivo
client = plivo.RestClient()
response = client.addresses.delete(
address_id='32208455725227')
print(response)
# Or, you could delete the address directly using the address object
address = client.addresses.get(
address_id='32208455725227', )
response = address.delete()
print(response)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Example for Account Get
*/
using System;
using System.Collections.Generic;
using Plivo;
using Plivo.Exception;
namespace PlivoExamples
{
internal class Program
{
public static void Main(string[] args)
{
var api = new PlivoApi("YOUR_AUTH_ID", "YOUR_AUTH_TOKEN");
string fileName = "path/to/file.jpg";
try
{
var deleteResponse = api.Address.Delete(
"addressId"
);
Console.WriteLine(deleteResponse);
}
catch (PlivoRestException e)
{
Console.WriteLine("Exception: " + e.Message);
}
}
}
}
Rate this page
🥳 Thank you! It means a lot to us!
×
Help Us Improve
Thank you so much for rating the page, we would like to get your input for further improvements!
Subscribe to Updates
Thank you for your feedback!