Skip to content

Deletes a space addressed by numeric id; the id is resolved to a slug and then handled exactly as the by-slug endpoint.

Endpoint

  • Method: DELETE

  • Path: /spaces/{spaceId}/by-id

  • Edition: Core

  • Controller: SpaceController@deleteById

  • Route source: fluent-community/app/Http/Routes/api.php:22

  • Controller source: fluent-community/app/Http/Controllers/SpaceController.php

  • Requires 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 along with it.

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 ID

DELETE
/spaces/{spaceId}/by-id

Deletes a space addressed by numeric id; the id is resolved to a slug and then handled exactly as the by-slug endpoint.

Controller: SpaceController@deleteById
Route source: fluent-community/app/Http/Routes/api.php:22

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

spaceId*

SpaceId extracted from the URL path.

Type
integer
Required

Responses

Successful response

application/json
JSON
{
  
"message": "string"
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation