How can i delete attachments blob file in the android device?

in the android device, i will create much blob file every day! some days later,i want delete some blob file for save store space.but ,i don’t find any way how to delete thems in android code. who can help me?

Blobs are de-duplicated and can be shared by multiple documents so the way to delete them is to make sure that no more documents exist that reference them and then calling compact on the database in question. This will both reduce the DB size itself and garbage collect any dangling blobs.

thank you your reply! but i can’t find compact fuction on the database at com.couchbase.lite:couchbase-lite-android-ee:3.1.0.

database.performMaintenance(MaintenanceType.COMPACT); i find it. Thank you again!