Delete a Community
Deleting a community is a permanent operation that removes the community and all its associated data from your school. This includes all posts, comments, members, and payment plans.
Important: Community deletion is permanent and cannot be undone. All community content, memberships, and payment plans will be permanently removed.
How Community Deletion Works
When you delete a community, CourseLit performs a comprehensive cleanup:
- Content Deletion: Removes all posts, comments, and reports
- Membership Cleanup: Cancels all memberships and payment plans
- Page Removal: Deletes the community’s public page
- Media Cleanup: Removes all associated media files
- Community Document: Deletes the community itself
Prerequisites
To delete a community, you must have the Manage Community permission.
Note: Even community moderators cannot delete a community. Only users with the
Manage Communitypermission (typically site admins) can perform this operation.
Deleting a Community
-
Navigate to the Communities area from your admin dashboard
-
Select the community you want to delete
-
Click on Manage to open settings
-
Scroll down to the Danger zone and click on Delete Community button

-
Confirm the deletion when prompted
What Gets Deleted
Community Content
All content within the community is permanently removed:
- Posts: All posts created in the community
- Comments: All comments on posts, including nested replies
- Reports: All content reports filed by members
- Media: All images, videos, and files uploaded to posts (when media uploads are enabled)
Memberships & Subscriptions
All membership-related data is removed:
- Community Memberships: All member records for the community
- Payment Subscriptions: All active subscriptions are automatically cancelled
- Payment Plans: All payment plans associated with the community
- Included Product Memberships: If the community’s payment plans included access to courses, those memberships are also removed
- Post Subscriptions: All user subscriptions to community posts
Community Infrastructure
The community’s infrastructure is removed:
- Community Page: The public-facing community page
- Community Settings: All configuration and settings
- Categories: All community categories
- Featured Images: Community banner and featured images
Related Data
Additional data associated with the community:
- Activities: Activity logs related to payment plan enrollments
- Notifications: Notifications related to the community (for members)
What Happens to Members
When a community is deleted:
- Active Subscriptions: All payment subscriptions are automatically cancelled through your payment provider (Stripe, PayPal, etc.)
- Membership Records: All membership records are permanently deleted
- Access Revoked: Members immediately lose access to the community
- Included Products: If members had access to courses through the community’s payment plan, that access is also revoked
Payment Plan Considerations
Subscription Cancellations
- All active subscriptions are cancelled automatically
- Payment providers (Stripe, PayPal, etc.) are notified
- No further charges will occur
- Members will not receive refunds automatically
Included Products
If your community’s payment plans included access to courses or other products:
- All memberships to those products (activated through the community plan) are removed
- Activity logs for those memberships are deleted
- Direct purchases of those products (not through the community) are not affected
Media Cleanup
The deletion process handles media files appropriately:
- Community Images: Featured images and banners are deleted
- Post Media: When media uploads are enabled, all media from posts is deleted
- User Avatars: Not affected (user avatars are tied to user accounts, not communities)
Note: Currently, media uploads in community posts are not enabled. When this feature is activated, the deletion process will handle post media cleanup automatically.
Safety Measures
CourseLit implements safety measures to ensure proper deletion:
- Permission Check: Only users with
Manage Communitypermission can delete - Confirmation Required: Deletion requires explicit confirmation
- Atomic Operation: The entire deletion succeeds or fails as a unit
- Subscription Cancellation: Automatic cancellation prevents future charges
Before Deleting a Community
Consider these steps before deleting:
- Notify Members: Inform community members about the upcoming deletion
- Export Data: If you need to preserve any content, export it manually. Only works for self-hosted installations.
- Handle Refunds: Process any necessary refunds through your payment provider
- Alternative Actions: Consider making the community private instead of deleting it
After Deletion
After a community is deleted:
- The community page returns a 404 error
- Members cannot access the community anymore
- All content is permanently lost
- Payment subscriptions are cancelled
- The community name becomes available for reuse
Handling Refunds
Community deletion does not automatically issue refunds. To handle refunds:
- Before Deletion: Note all active subscriptions and their subscription IDs
- Access Payment Provider: Log into your Stripe, PayPal, or other payment provider dashboard
- Process Refunds: Manually issue refunds as appropriate
- Delete Community: Once refunds are processed, proceed with deletion
Alternative to Deletion
If you want to preserve content but stop new members from joining:
- Disable the Community: Toggle the community to “disabled” in settings
- Remove Payment Plans: Archive all payment plans
This approach preserves content while preventing new access.
Troubleshooting
Cannot Delete Community
If you encounter errors:
- “Action not allowed”: You don’t have the
Manage Communitypermission - ”Item not found”: The community may have already been deleted or doesn’t exist
- ”Community not found”: You may not have access to this community
Subscription Cancellation Issues
If subscriptions fail to cancel:
- Manually cancel subscriptions in your payment provider’s dashboard
- Contact support if issues persist
Partial Deletion
If deletion fails partway through:
- The operation is designed to be atomic, but in rare cases, partial deletion may occur
- Contact support with error details
- Manual cleanup may be required
Best Practices
- Communicate Early: Give members advance notice before deletion
- Export Important Content: Save any valuable discussions or content
- Process Refunds First: Handle refunds before deleting to maintain records
- Document the Decision: Keep records of why and when the community was deleted
- Consider Alternatives: Evaluate if disabling is sufficient instead of deletion
GDPR and Data Protection
Community deletion helps with data protection compliance:
- All member data within the community is removed
- Personal information in posts and comments is deleted
- Membership records are permanently erased
- The operation can be part of a broader data cleanup strategy
Stuck somewhere?
We are always here for you. Come chat with us in our Discord channel or send a tweet at @CourseLit.