Skip to main content
DELETE
/
space
/
delete
Delete Space
curl --request DELETE \
  --url https://api.example.com/space/delete \
  --header 'Content-Type: application/json' \
  --data '
{
  "v_name": "<string>"
}
'
{
  "400": {},
  "401": {},
  "500": {},
  "message": "<string>"
}

Authentication

This endpoint requires authentication. The JWT token must be provided in the access_token cookie.

Request Body

v_name
string
required
Name of the space to deleteExample: "Salón Principal"

Response

message
string
Success message confirming space deletionExample: "Eliminacion Exitosa"

Example Request

curl -X DELETE https://api.demet.com/space/delete \
  -H "Content-Type: application/json" \
  -b "access_token=YOUR_JWT_TOKEN" \
  -d '{
    "v_name": "Salón Principal"
  }'

Example Response

{
  "message": "Eliminacion Exitosa"
}

Error Responses

400
error
Invalid data or space not found with the provided name.
401
error
Authentication error. Token not sent, invalid, or expired.
500
error
Internal server error.

Important Notes

This operation is permanent and cannot be undone. Ensure you want to delete the space before making this request.
The space is identified by its name. Make sure to provide the exact name as it appears in the system.

Build docs developers (and LLMs) love