Skip to content

Disk size not shrinking after deleting data

Last edited: 8/12/2026

如果你删除了大量数据(例如,通过删除大表),你可能会发现项目的磁盘大小不会自动缩小。这是正常现象,因为 Postgres 会回收释放的空间用于内部重用,但不会把它返还给操作系统。此外,云存储卷(例如 AWS EBS)不支持原地缩减,这意味着磁盘大小无法通过仪表板界面直接减小。

🌐 If you've deleted a significant amount of data (e.g., by dropping large tables), you may observe that your project's disk size does not automatically shrink. This is expected behavior as Postgres reclaims freed space for internal reuse but does not return it to the operating system. Furthermore, cloud storage volumes (such as AWS EBS) do not support in-place shrinking, which means the disk size cannot be directly reduced via the dashboard UI.

要回收磁盘空间并减少项目的磁盘分配,你需要启动 Postgres 版本升级。这个过程会创建一个挂载了更小磁盘的新实例,迁移你的数据,并在升级和切换期间会有短暂的停机时间。你可以从 Supabase 控制面板 开始这个过程。

🌐 To reclaim disk space and reduce your project's disk allocation, you will need to initiate a Postgres version upgrade. This process provisions a new instance with a smaller disk attached, migrates your data, and involves brief downtime during the upgrade and switchover. You can start this process from the Supabase Dashboard.