curl --request DELETE \
--url https://api.cludo.com/api/v4/{customerId}/index/{crawlerId}/documents \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.cludo.com/api/v4/{customerId}/index/{crawlerId}/documents"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.cludo.com/api/v4/{customerId}/index/{crawlerId}/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'DELETE', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.cludo.com/api/v4/{customerId}/index/{crawlerId}/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"deleted": 1
}{
"failed": 1,
"reason": "Deletion for document with Id 2 failed"
}{
"message": "unauthorized"
}{
"status": "InternalServerError",
"code": 500,
"messages": [
"Error occur. Please contact support with error ID: a1b2c3d4-e5f6-7890-abcd-ef1234567890"
]
}Single Delete
Deletes one document from the index by its document ID, supplied as the required documentId query parameter.
The document ID is the same value you used as id when indexing the document. For most integrations this is the document’s canonical URL (e.g. https://example.com/products/widget-pro), not an internal numeric key.
When the document ID contains reserved characters — which a full URL typically does (?, &, =, #, spaces) — URL-encode it before adding it to the query string so it is parsed correctly (e.g. documentId=https%3A%2F%2Fexample.com%2Fproducts%2Fwidget-pro).
curl --request DELETE \
--url https://api.cludo.com/api/v4/{customerId}/index/{crawlerId}/documents \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.cludo.com/api/v4/{customerId}/index/{crawlerId}/documents"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.cludo.com/api/v4/{customerId}/index/{crawlerId}/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'DELETE', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.cludo.com/api/v4/{customerId}/index/{crawlerId}/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"deleted": 1
}{
"failed": 1,
"reason": "Deletion for document with Id 2 failed"
}{
"message": "unauthorized"
}{
"status": "InternalServerError",
"code": 500,
"messages": [
"Error occur. Please contact support with error ID: a1b2c3d4-e5f6-7890-abcd-ef1234567890"
]
}Authorizations
Path Parameters
Query Parameters
The document ID to delete — the same string you used as id when indexing. For most integrations this is the document's canonical URL (e.g. https://example.com/products/widget-pro). Because the value is usually a full URL, it must be URL-encoded in the query string (e.g. documentId=https%3A%2F%2Fexample.com%2Fproducts%2Fwidget-pro).
Was this page helpful?

