delete if
tiny utility to delete with certain queries.
Under development
- Delete based on size
- Delete based on size greater than
x
- Delete based on size lower than
x
- Delete based on size greater than
- Delete by type
- Delete only Files
- Delete only Folders
- Dry Run to list files to be deleted
Once the above functionalities have been added, you'll be able to download the binaries from the releases section
$ 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