删除你的项目
Understanding the permanent consequences and how to protect yourself
删除 Supabase 项目是一个永久且不可逆的操作。在继续之前,请了解将被删除的内容的全部范围,并采取预防措施以防止意外的数据丢失。
🌐 Deleting a Supabase project is a permanent and irreversible action. Before proceeding, understand the full scope of what will be deleted and take precautions to prevent accidental data loss.
我们无法恢复已删除的项目。所有数据、备份和配置都会被永久删除。在继续删除项目之前,请确保已导出所有重要数据或保存了备份。
🌐 We cannot recover deleted projects. All data, backups, and configurations are permanently removed. Ensure you have exported all critical data or saved backups before proceeding to delete your project.
被删除的东西 #
🌐 What gets deleted
当你删除一个项目时,所有工件都会被永久删除,且无法恢复。 这些工件包括(但不限于):
🌐 When you delete a project, all artifacts are permanently removed and you cannot recover them. Some of these artifacts includes (but are not limited to):
- 数据库及所有数据:你的整个 Postgres 数据库,包括所有表、模式和记录
- 边缘函数:所有已部署的边缘函数及其源代码都会被移除
- 存储对象:存储桶中的所有文件都会被永久删除
- 备份:所有自动备份和时间点恢复快照都无法访问
- 认证数据:用户账户、会话和认证日志已被删除
- 实时订阅:所有活跃的订阅和配置都已清除
- API 密钥和凭证:所有项目 API 密钥、服务角色密钥和 Webhook 都已失效
- 自定义域名和 SSL 证书:与项目关联的任何自定义域名都将被移除
如何删除一个项目 #
🌐 How to delete a project
你可以通过以下任何一种方法删除项目:
🌐 You can delete a project through any of these methods:
通过仪表板 #
🌐 Via dashboard
- 前往你项目的 设置 > 常规 > 删除项目
- 点击 删除项目
- 请输入你的项目名称,必须与显示的一模一样才能确认
- 查看确认对话框,然后点击删除
通过 Supabase CLI #
🌐 Via Supabase CLI
1supabase projects delete <project-ref>想了解更多信息,请查看 Supabase CLI 文档。
🌐 For more information, see the Supabase CLI documentation.
通过管理 API #
🌐 Via management API
1curl -X DELETE https://api.supabase.com/v1/projects/<project-ref> \2 -H "Authorization: Bearer <access-token>"欲了解更多信息,请参阅管理 API 文档。
🌐 For more information, see the Management API documentation.
删除后 #
🌐 After deletion
一旦项目被删除:
🌐 Once a project is deleted:
- 你的项目链接将不再可用
- DNS 记录将被清理(可能需要最多 24 小时才能完全生效)
- 这个项目的计费将立即停止
- 你无法恢复或还原这个项目
删除项目会阻止新的使用量累积,但不会移除当前计费周期内已经发生的使用量。对于基于配额的限制,这些使用量在计费周期重置之前仍然会被计入。有关更多详情,请查看我们的公平使用政策。
🌐 Deleting projects stops new usage from accumulating, but does not remove usage that already occurred during the current billing cycle. For quota-based limits, that usage still counts until the billing period resets. See our Fair Use Policy for further details.
备选:暂停你的项目 #
🌐 Alternative: Pause your project
如果你不确定是否要删除,可以考虑先暂停你的项目:
🌐 If you're unsure about deletion, consider pausing your project instead:
注意:目前只有免费项目可以暂停。
🌐 Note: Only Free Projects can be paused at this time.
- 已暂停的项目 不会产生计算费用
- 数据已保存,恢复时可以访问
- 快速恢复 — 随时恢复项目,无数据丢失
要暂停一个项目,进入 设置 > 常规 > 项目可用性,然后点击 暂停项目。
🌐 To pause a project, navigate to Settings > General > Project availability and click Pause Project.
需要考虑的防护措施 #
🌐 Protective measures to consider
为了防止意外删除,可以考虑以下几点:
🌐 To safeguard against accidental deletion, consider the following:
1. 备份你的数据库 #
🌐 1. Backup your database
你可以按照提供的备份和恢复指南来备份你的数据库。
🌐 You can backup your database by following the backup and restore guide provided.
如果你使用的是专业版、团队版或企业版,并且有旧版逻辑备份,你可以从your Supabase 仪表板下载一份副本
🌐 If you are on the Pro, Team or Enterprise Plan, with legacy logical backups, you can download a copy from your Supabase dashboard
2. 下载存储对象 #
🌐 2. Download storage objects
- 备份所有存储桶中的重要文件
- 使用 Supabase 仪表板或 API 批量下载文件
- 存放在 Supabase 之外的安全地方
3. 文档配置 #
🌐 3. Document configuration
- 从仪表板导出 Edge Function 的代码和配置
- 保存身份验证提供者设置(OAuth、SAML 等)
- 记录任何自定义的数据库函数、触发器或策略
- 记录 webhook 配置和集成
4. 启用访问控制 #
🌐 4. Enable access controls
限制谁可以删除你们组织内的项目,以防团队成员意外删除。
查看访问控制
🌐 Restrict who can delete projects within your organization to prevent accidental deletion by team members. See Access Controls
- 设置基于角色的访问控制来限制删除权限
- 对敏感操作要求使用多因素认证(MFA)
- 使用 Supabase 仪表板来配置团队成员权限
5. 监控项目活动 #
🌐 5. Monitor project activity
- 启用审计日志来跟踪谁可以访问你的项目
- 在删除之前先审查并撤销不必要的 API 密钥
- 检查一下有没有依赖这个项目的定时任务或集成
需要帮忙吗? #
🌐 Need help?
如果你不确定是否要删除或需要帮助:
🌐 If you're unsure about deletion or need assistance:
- 看看这份指南和上面的保护措施
- 联系 Supabase 支持 获取指导
- 在删除共享项目之前考虑先联系一下你的团队