Batch Delete by Subject
Submit a delete-by-subject task which deletes multiple subjects.
You can then check the status of that Task using the Get Task API. Once your task is complete, the data will be removed from the search index and will no longer appear in query results.
Method |
POST |
URL |
/v1/index/<index_id>/batch_delete_by_subject |
Authentication required? |
Yes |
Required Roles |
You must have |
Request Body |
a BatchDeleteBySubject document |
Response Body |
Deleting a subject deletes all entries in that subject, including those those which are not visible to the current user.
Authentication & Authorization
Tokens for this call must have one of these scopes.
urn:globus:auth:scope:search.api.globus.org:all urn:globus:auth:scope:search.api.globus.org:ingest
Request Schemas
BatchDeleteBySubject
A BatchDeleteBySubject request primarily contains a list of subject strings which should be deleted.
Field Name | Type | Description |
---|---|---|
subjects |
Array of String |
The list of subjects to delete |
{
"subjects": [
"very-cool-document",
"less-cool-document",
"document-wearing-sunglasses"
]
}