Skip to main content

Overview

useDeleteSpace returns a callable function for deleting a space. Only space admins can delete a space. Deletion cascades to all entities, members, child spaces, rules, and reports associated with the space.
Deleting a space is permanent. All entities, comments, members, child spaces, and rules belonging to the space are also deleted. The reputation users earned in the space and its sub-spaces is removed from their totals (see Reputation).

Usage Example

Parameters

string
required
UUID of the space to delete.

Returns

string
Confirmation message.
object
The id and name of the deleted space.
object
Counts of deleted resources: entities, members, childSpaces.