# Delete a chat session **DELETE /chat/{chatId}** ## Servers - Local development server: http://localhost:3000/api/v1 (Local development server) - Production server: https://referspecs-backend.onrender.com/api/v1 (Production server) ## Authentication methods - Bearer auth ## Parameters ### Path parameters - **chatId** (string) The CUID of the chat to delete ## Responses ### 200 Chat deleted successfully #### Body: application/json (object) - **success** (boolean) - **statusCode** (integer) - **message** (string) ### 400 Bad Request (e.g., missing chatId) #### Body: application/json (object) - **success** (boolean) - **statusCode** (integer) - **message** (string) ### 401 Unauthorized #### Body: application/json (object) - **success** (boolean) - **statusCode** (integer) - **message** (string) ### 404 Chat not found or user does not have permission #### Body: application/json (object) - **success** (boolean) - **statusCode** (integer) - **message** (string) ### 500 Internal Server Error #### Body: application/json (object) - **success** (boolean) - **statusCode** (integer) - **message** (string) [Powered by Bump.sh](https://bump.sh)