GET
/
delete-document
curl --location 'https://document-query.pyqai.com/delete-document?account_id=ExampleAccountID&index_name=ExampleIndexName&document_source=ExampleDocumentSource' \
--header 'Authorization: ExampleToken' \
--data ''
{
    "response": "Successfully deleted document from index"
}

Query Parameters

document_source
string
required
This is the name of the document you wish to delete.
index_name
string
This is the name of the index you wish to remove the document from. This parameter is optional - if left blank will use auto indexing.
account_id
int
required
This is your account ID.

Headers

Authorization
string
required
This is your API token associated with your account.

Response

response
string
Indicates whether the delete call was successful.
curl --location 'https://document-query.pyqai.com/delete-document?account_id=ExampleAccountID&index_name=ExampleIndexName&document_source=ExampleDocumentSource' \
--header 'Authorization: ExampleToken' \
--data ''
{
    "response": "Successfully deleted document from index"
}