Skip to content

barelyhuman/delif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

delif

delete if

tiny utility to delete with certain queries.

Under development

Goals

  • Delete based on size
    • Delete based on size greater than x
    • Delete based on size lower than x
  • Delete by type
    • Delete only Files
    • Delete only Folders
  • Dry Run to list files to be deleted

Installation

Once the above functionalities have been added, you'll be able to download the binaries from the releases section

Usage

$ delif file directory # simply delete the file or directory without any conditions

$ delif --gt="1M" directory # delete directory if it's greater than 1 megabyte

$ delif --dry --gt="1MB" directory # same as above but will dry run instead of actually deleting stuff

$ delif -d directory file # delete only directories from a list of files and directories

$ delif -f directory file # delete only files from a list of files and directories

License

MIT