Delete an element
DELETE
/elements/{elementId}
This endpoint delete an existing element and all the answers / documents linked to it. It returns an object with the elementId.
This action can't be cancelled. Use it at your own risk.
Path parameters
-
elementId string Required
Specify the ID of the element to delete.
Responses
-
• 200 object
-
• 400
Bad Request -- Your request is invalid.
-
• 401
Unauthorized -- Your API key is wrong.
-
• 403
Forbidden -- The object requested is hidden for administrators only.
-
• 404
Not Found -- The specified object could not be found.
-
• 429
Too Many Requests -- You're requesting too many objects! Slow down!
-
• 500
Internal Server Error -- We had a problem with our server. Try again later.
-
• 503
Service Unavailable -- We're temporarily offline for maintenance. Please try again later.
DELETE /elements/{elementId}
curl \
-X DELETE https://api.usecollect.com/v1/elements/{elementId} \
--user "username:password"
Response example (200)
{
"id": "XigRzPs4N5vwX3Rks",
"deleted": true
}