Skip to main content
DELETE
/
public
/
v1
/
docs
/
{docId}
Delete Document
curl --request DELETE \
  --url https://api.copera.ai/public/v1/docs/{docId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true
}

Overview

Soft-deletes a document by its ID. Only the owner of the document can perform this action. The document is not permanently removed and may be recoverable.

Response

Returns a confirmation of the deletion.

Authorizations

Authorization
string
header
required

Bearer token

Path Parameters

docId
string
required

ObjectId

Required string length: 24
Pattern: ^[0-9a-fA-F]{24}$

Response

Default Response

success
boolean
required