docker run --rm -v "$PWD:/pwd" busybox rm -rf /pwd/<element>
- Create a small linux docker (
busybox
) - Make the current terminal location a volume binded to
/pwd
in the container - Remove an element from that location (
/pwd/<element>
) - Erase the launched container (
--rm
)