Bulk Delete Experiences

View as Markdown
Delete multiple experiences by providing a list of experience IDs. Users can only delete their own experiences. The API works even if the list contains just one ID. **Behavior:** - **Resource Cleanup:** Before deleting Experience records, the API will attempt to clean up deployed resources - **Domains:** Uses async Celery task to clean up domain infrastructure - **Quests:** Directly deletes Quest records - **Blogs:** Directly deletes Blog records - **Error Handling:** If resource cleanup fails, the Experience deletion still proceeds, and warnings are returned - Invalid or non-existent IDs will be ignored, and the operation will continue with valid ones **Response:** - `deleted_ids` contains the experience IDs that were actually found and deleted - `cleanup_warnings` (optional) contains any errors encountered during resource cleanup

Request

This endpoint expects an object.
idslist of integersRequired
List of experience IDs to delete

Response

Bulk delete operation completed
deleted_countinteger
deleted_idslist of integers
not_found_idslist of integers
messagestring
cleanup_warningslist of strings
List of warnings if any deployed resource cleanup failed

Errors

400
Bad Request Error
401
Unauthorized Error