⌘
K
GrokAI
About
Ask Grok
Demo
Swagger-UI
GrokAI API
Authentication
User
Quota
Collections
Documents
Conversations
Messages
Docs powered by
Archbee
GrokAI API
Documents
Delete document
DELETE
Try it
Delete an existing document by its ID.
Authentication
X-API-Key
apiKey
Responses
204
The document has been successfully deleted.
default
Default error response
ErrorResponse
code
integer
*
message
string
*
status
string
*
data
object
Curl
JS
Ruby
Python
1
curl
--location
--globoff
--request
DELETE
'https://api.askgrok.ai/collections/{cId}/documents/{dId}'
\
2
--header
'Accept: application/json'
\
3
--header
'Content-Type: application/json'
curl --location --globoff --request DELETE 'https://api.askgrok.ai/collections/{cId}/documents/{dId}' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
Responses
204
default
1
// The document has been successfully deleted.
2
// The document has been successfully deleted.
PREVIOUS
Get document
NEXT
Search document
Docs powered by
Archbee
Docs powered by
Archbee