Permanent Deletion
Remove communities through the SDK delete API
Permission Control
Rely on backend permission enforcement
Data Cleanup
Clean up local lists, navigation, and UI state
Safety Measures
Implement confirmation flows and recovery-policy messaging
Delete Community
Call the delete-community method with acommunityId. TypeScript, Android, and Flutter use deleteCommunity. iOS uses deleteCommunity(withId:).
After a successful delete, update any local collection, detail view, or navigation state that still references the community.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
communityId | String | Yes | Unique identifier of the community to delete |
Permission Requirements
Deletion is permission-gated by the backend. In most products, deletion controls are shown only to community creators, moderators, or administrators, but the SDK call is still validated server-side.Client Impact
After successful deletion, handle the client-side effects explicitly:- Remove the community from any local list or cached UI state.
- Navigate away from deleted community detail screens.
- Stop showing actions that require the deleted
communityId. - Refresh affected discovery or membership queries when needed.
Pre-Deletion Considerations
Product Policy
Before exposing deletion, decide how your product handles:- Data retention: What is retained or recoverable outside the client SDK
- Member notification: Whether members should be notified before deletion
- Alternatives: Whether archive, privacy, or moderation actions are safer than deletion
Member Management
Refresh membership and discovery views after deletion so users do not see stale references to the deleted community.Best Practices
Implementation Guidelines
- Multi-Step Confirmation: Require multiple explicit confirmations
- Name Verification: Make users type the community name to confirm
- Permission Checks: Verify user permissions before showing delete options
- Loading States: Show clear progress during deletion operations
- Success Feedback: Provide clear confirmation of successful deletion
User Experience Considerations
- Clear Warnings: Emphasize the permanent nature of deletion
- Data Export: Offer data export before deletion if your product supports it
- Member Communication: Provide tools to notify community members
- Navigation: Handle post-deletion navigation appropriately
Related Topics
Update Community
Modify community settings as an alternative to deletion
Community Moderation
Manage communities with moderation tools instead of deletion
Create Community
Learn about community creation to understand deletion impact
Member Management
Handle member relationships before community deletion