Delete an Identity
Permanently delete an Identity
.
API Endpoint
DELETE
https://api.plivo.com/v1/Account/{auth_id}/Verification/Identity/{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.identities.delete(
identity_id='32208455725227')
print(response)
# Or, you could delete the identity directly using the identity object
identity = client.identities.get(
identity_id='32208455725227', )
response = identity.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
/**
* 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");
try
{
var deleteResponse = api.Identity.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!