Skip to main content

Overview

useDeleteSpace returns a callable function for deleting a space. Only the space’s owner can delete it (its userId: the creator of a top-level space, the root space’s creator for a sub-space, so whoever created a sub-space can’t delete it), and not while they are banned from the space or from a space above it. 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

Promise<void>: resolves with nothing once the space is deleted.