This is a list of the custom cleanup configuration fields. Keep reading for some usage examples.

  • Path

    The path to the file or folder to cleanup. You can manually enter it, or tap the magnifying glass button to browse the filesystem.

  • File type

    Here you can choose if the selected file is a regular file or a folder. This field is automatically updated if you use the filesystem browser.

  • Folder settings

    These options are visible only if "folder" is selected.

    "Whole folder" deletes the whole folder, "files and subfolders" only deletes files and subfolders contained in the folder, while "only files" only deletes regular files contained in the folder.

  • Recursive

    This option is only visible if "folder" is selected.

    If disabled, the tool will only delete files/folders contained in the folder itself, not inside its subfolders. If enabled, the tool will browse all the subfolders of the selected folder, scanning them for files and/or folders.

    This setting is especially useful when combined with the "match" fields.

  • Match

    This option is only visible if "files and subfolders" or "only files" are selected.

    These options let you decide which files/folders should be deleted based on their names. "Starting with", "containing" and "ending with" can be used individually or simultaneously to match complex file names.

    Matches are case-sensitive. If these fields are empty, iCleaner will match all files and/or folders (depending on how you configured it).

Path: /var/mobile/example.txt
File type: regular file

Deletes the "example.txt" file located in /var/mobile.

Path: /var/mobile/example
File type: folder
Folder setting: whole folder

Deletes the "example" folder located in /var/mobile, and anything that is contained within.

Path: /var/mobile/example
File type: folder
Folder setting: files and subfolders
Recursive: no (or yes)
Match: n/a

Empties the "example" folder located in /var/mobile, without deleting the folder.

"Recursive" is meaningless here, as it will delete everything inside the folder in both cases (because no "match" option was specified).

Path: /var/mobile/example
File type: folder
Folder setting: files and subfolders
Recursive: no
Match: starting with "cache"

Deletes files and folders with names starting with "cache" inside /var/mobile/example (but not inside its subfolders).

Path: /var/mobile/example
File type: folder
Folder setting: only files
Recursive: yes
Match: containing "crash", ending with ".log"

Deletes files with names containing "crash" and ending with ".log" inside /var/mobile/example and all its subfolders.

This will delete "aBadcrash1.log", "crash.log", but not "crash.txt" or "pizza.log".