Delete Data
POST
/api/collections/data/deleteLast modified:Â 4 months ago
Delete Document Data
The following examples demonstrate how to delete documents, fields, and collections.
Deleting a document is as simple as calling the delete
method on the document reference.
curl --location 'https://api.worqhat.com/api/collections/data/delete' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API KEY>' \
--data '{
"collection": "Sample Collection",
"docId": "sampleDocId"
}'
Request
Body Params application/json
collection
stringÂ
required
docId
stringÂ
required
Example
{
"collection": "testdata2",
"docId": "user1235"
}
Request samples
Responses
OK(200)
Server Error(500)
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
message
stringÂ
required
processingTime
numberÂ
required
processingId
stringÂ
required
Example
{
"message": "Data deleted successfully",
"processingTime": 310.58475,
"processingId": "2d122365-9979-4a21-a47a-a703b906dcd1"
}
Last modified: 4 months ago