The Delete Store endpoint permanently removes a store from the Ocha platform. The operation is irreversible — there is no soft-delete or trash mechanism. On success the server responds withDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/floriansalvi/HEIG-VD_Ocha-api/llms.txt
Use this file to discover all available pages before exploring further.
204 No Content and an empty body. If the store does not exist, or if the supplied identifier is malformed, an error is returned before any deletion is attempted.
Endpoint
Path Parameters
The MongoDB ObjectId of the store to delete (24-character hex string, e.g.
64f1c2e9a1b2c3d4e5f12345).Response — 204 No Content
The server returns204 No Content with an empty body on successful deletion.
Error Codes
| Status | Description |
|---|---|
400 | The supplied id is not a valid MongoDB ObjectId. |
401 | No valid JWT was provided in the Authorization header. |
403 | The authenticated user does not have admin privileges. |
404 | No store exists with the given id. |
500 | Unexpected server error. |
Example
204 with no response body.