DELETE /resources/
Soft-deletes a resource by marking it as deleted in the database. This operation also:- Stops the associated wrapper process if running
- Updates the wrapper status to STOPPED
- Publishes a message to the resource deletion queue for downstream processing
Authentication
This endpoint requires authentication.Path Parameters
The unique identifier of the resource to delete (MongoDB ObjectId format)
Response
Returns a deletion confirmation object.The ID of the deleted resource
Confirmation that the resource was deleted (always true on success)
Example Request
Example Response
Error Responses
Invalid resource ID format
Resource not found or already deleted
Database operation failed
Side Effects
When a resource is deleted, the following actions occur automatically:- Wrapper Process Management: If the resource has an associated wrapper, the wrapper process is stopped
- Wrapper Status Update: The associated wrapper’s status is updated to STOPPED with a timestamp
- Execution Log: An entry is added to the wrapper’s execution log documenting the deletion
- Message Queue: A message is published to the resource deletion queue containing:
Notes
- This is a soft-delete operation. The resource record remains in the database with a
deleted: trueflag - Deleted resources will not appear in list or get operations
- The deletion is irreversible through the API (requires direct database access to restore)