Cleanup manager¶
This job removes stale resources left by previous deployments.
Use it¶
Sample job configuration in your scenario file:
- name: Cleanup stale resources
uses: cleanup-manager
with:
deletion_policy: trash_or_delete
dry_run: true
scopes:
- plugins_cache
- plugins_installed
Options¶
deletion_mode¶
Deletion policy to apply when it comes to removing files from the end-user disk.
Possible_values: see Deletion policy section in configuration page.
Default: trash_or_delete
dry_run¶
If true, no file or folder is deleted. QDT only reports what would be removed.
Default: false
scopes¶
Scope(s) of the cleanup.
Possible values:
plugins_cache: remove ZIP archives from the local QDT plugins cache that are no longer referenced by profiles.plugins_installed: remove stale plugin folders from installed profiles.
Note
When plugins_installed is used, QDT only targets plugins listed in the profile manifest named .qdt-managed-plugins.json, generated by the Plugins Synchronizer job.
This means plugins installed manually by users (for example via the QGIS Plugin Manager) are ignored by this cleanup.
Default:
plugins_cache