This topic describes how to release database storage in apsaradb for MongoDB.
In the execution
db.collection.removethe command will not release the database space.
The db.dropDatabase and db.collection.drop commands delete the corresponding databases and collection files. After the commands are executed, the space is immediately released.
If you need to use the db.collection.remove command to delete a large amount of data, perform the compact operation to free up space. The compact operation may be blocked. Run the compact operation during off-peak hours.
Description: The preceding operations passed the test in MongoDB 3.4.
Metrics for ApsaraDB for MongoDB