Skip to content

Latest commit

 

History

History
45 lines (39 loc) · 865 Bytes

delete.md

File metadata and controls

45 lines (39 loc) · 865 Bytes
title description published date tags editor dateCreated
delete
true
2022-09-18 05:03:37 UTC
markdown
2022-09-18 05:03:34 UTC

Delete

TODO: Improve documentation

Syntax:

delete:
  [allow_dir]: allows or denies to operate on entries pointing to directories
  [along]: delete additional files such as subtitles
    [extensions]: file extensions
    [subdirs]: sub directories to search in
  [clean_source]: delete source directory if it has less MB left than given after delete

[] = optional

Here is an example of usage in a more comprehensive context (untested)

tasks:
  cleanup:
    filesystem:
      path: /filestorage1/
      recursive: yes
    age:
      field: created
      action: accept
      age: 600 days
    delete:
      clean_source: 1
      along:
        extensions:
          - sub
          - srt