## Compact & Cleanup

Compact Database

Compacting a database removes deleted documents and previous revisions. It is an irreversible operation and may take a while to complete for large databases.

Compact Views

View compaction will affect all views in this design document. This operation may take some time to complete. Your views will still operate normally during compaction.

Cleanup Views

Cleaning up views in a database removes old view files still stored on the filesystem. It is an irreversible operation.