autotrash

purges files from your trash based on age and/or filename

Debian Debian
RUN apt-get update && \ apt-get install -y autotrash
Ubuntu
RUN apt-get update && \ apt-get install -y autotrash
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y autotrash
Fedora
RUN dnf install -y autotrash
Raspbian
RUN apt-get update && \ apt-get install -y autotrash
click the source code to copy install autotrash on any operating system with command-not-found.com