Delete a Archive

You can delete an archive using the DELETE method on the archives endpoint. You need a token with write privileges, otherwise a 401 or 403 will be sent back.

Selecting an archive to delete is done with the same parameters as the GET endpoint.

In order to avoid massive deletions by mistake, you can only delete one archive at a time.

DELETE http://host.28.io/v1/_queries/public/api/archives?token=c3049752-4d35-43da-82a2-f89f1b06f7a4&aid=foobar

Further reference

The reference for the REST API is documented here.