To compact and repair a database, tap or click the Compact & Repair
button in the info gallery in the backstage view.
The button (command) Compact&Repair can help prevent and correct problems like: database files that grow with use or database files that become corrupted. All these problems degrade the performance of the database.