Delete a space
Spaces method and path for this operation:
delete /s/{space_id}/api/spaces/space/{id}
Refer to Spaces for more information.
When you delete a space, all saved objects that belong to the space are automatically deleted, which is permanent and cannot be undone.
DELETE
/api/spaces/space/{id}
curl \
--request DELETE 'https://localhost:5601/api/spaces/space/{id}' \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: true"