ptrash

Move file(s) to $XDG_DATA_HOME/Trash directory

Fedora
RUN dnf install -y ptrash
click the source code to copy install ptrash on any operating system with command-not-found.com