rm -r dir/

Category: File Operations

rm -r dir/

Remove a directory and its contents recursively

Deletes a directory and everything inside it. -r means 'recursive'. Be very careful — this is permanent.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.