curl -X DELETE "https://api.usegately.com/api/v1/contacts/CONTACT_ID" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Project-ID: YOUR_PROJECT_ID"
await fetch('https://api.usegately.com/api/v1/contacts/CONTACT_ID', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'X-Project-ID': 'YOUR_PROJECT_ID',
}
})
import { GatelyContacts } from '@gately/sdk'
const crm = new GatelyContacts({ projectId: 'YOUR_PROJECT_ID' })
await crm.delete('CONTACT_ID')
{
"message": "Contact deleted successfully"
}
{
"error": "Contact not found"
}
Contacts
Delete Contact
Permanently delete a contact and all associated data
DELETE
/
api
/
v1
/
contacts
/
{contactId}
curl -X DELETE "https://api.usegately.com/api/v1/contacts/CONTACT_ID" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Project-ID: YOUR_PROJECT_ID"
await fetch('https://api.usegately.com/api/v1/contacts/CONTACT_ID', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'X-Project-ID': 'YOUR_PROJECT_ID',
}
})
import { GatelyContacts } from '@gately/sdk'
const crm = new GatelyContacts({ projectId: 'YOUR_PROJECT_ID' })
await crm.delete('CONTACT_ID')
{
"message": "Contact deleted successfully"
}
{
"error": "Contact not found"
}
This action is irreversible. The contact, their tag associations, list memberships, and unsubscribe records are all permanently removed.
Headers
string
required
Bearer YOUR_API_KEYstring
Your project UUID. Not required if the API key already encodes the project.
Path Parameters
string
required
The contact UUID
Response
string
Confirmation message
curl -X DELETE "https://api.usegately.com/api/v1/contacts/CONTACT_ID" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Project-ID: YOUR_PROJECT_ID"
await fetch('https://api.usegately.com/api/v1/contacts/CONTACT_ID', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'X-Project-ID': 'YOUR_PROJECT_ID',
}
})
import { GatelyContacts } from '@gately/sdk'
const crm = new GatelyContacts({ projectId: 'YOUR_PROJECT_ID' })
await crm.delete('CONTACT_ID')
{
"message": "Contact deleted successfully"
}
{
"error": "Contact not found"
}
Was this page helpful?
⌘I