clean

abstract suspend fun clean(items: List<TrashItem>)

Launches a list of cleaners for cleaning trash items.

Parameters

items

List of trash items to remove

Example:

// Get the launcher through the cleaner manager
val launcher = CleanerManagerFactory.cleanerManager.launcher

// Get a list of items to clear
val trashItemList: List<TrashItem>

// Start the cleaning process with the following call
launcher.clean(
items = trashItemList
)

Throws

In case the method is used not in the library scope

If the library has the status CleanerManager.isPreparedToWork is false