Deletes a space along with everything posted in it and every membership record for it.
Endpoint
Method:
DELETEPath:
/spaces/{spaceSlug}Edition: Core
Controller:
SpaceController@deleteBySlugRoute source:
fluent-community/app/Http/Routes/api.php:21Controller source:
fluent-community/app/Http/Controllers/SpaceController.phpRequires community-admin access or the admin role in this space.
Destructive and cascading: comments, reactions, posts and all membership rows for the space are deleted first, then the space itself. None of it can be recovered.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
DELETE Delete Space By Slug
Deletes a space along with everything posted in it and every membership record for it.
Controller: SpaceController@deleteBySlug
Route source: fluent-community/app/Http/Routes/api.php:21
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
SpaceSlug extracted from the URL path.
Responses
Successful response