linux remove directory and all files code example Example 1: remove all directrories in onde command hit rm -R -- */ Example 2: remove full dir rm -r mydir