# Bulk Delete

The /bulk_delete endpoint facilitates the deletion of multiple items from storage by accepting a list of Request IDs (RIDs). This enables efficient management of storage space and data lifecycle.

# Parameters

Provide a JSON object with the following property:

  • rids (required): An array of RIDs that specify the items you wish to delete from storage.

# Request

To delete a set of items corresponding to specific RIDs:

curl -X POST 'https://api.crawlbase.com/storage/bulk_delete?token=_USER_TOKEN_' \
-H 'Content-Type: application/json' \
-d '{ "rids": ["RID1", "RID2", "RID3"] }'

# Response

The response will be a JSON array where each object represents the outcome of the deletion operation for each RID. The status field indicates whether the deletion was successful (true) or not (false), and the result field provides a textual description of the outcome.

[
    {
        "rid": "RID1",
        "result": "Deleted",
        "status": true
    },
    {
        "rid": "RID2",
        "result": "Not Found",
        "status": false
    },
    {
        "rid": "RID3",
        "result": "Failed",
        "status": false
    }
]

# Notes

For efficient use of the /bulk_delete API, please take note of the following:

  • The deletion process is irreversible. Please ensure accuracy in the list of RIDs provided for deletion to prevent unintended data loss.

  • Use this endpoint responsibly to manage your storage effectively and maintain the integrity of your data.