Bash – Delete Files and Folders

email me

# single file
rm file1.pdf

# multiple files
rm file1.pdf file2.pdf file3.pdf

# prompt user
rm -i file1.pdf

# single folder
rmdir folder1

# recursively delete
rm -R folder1

 

Notes

rm
rmdir

 

tags: MrNetTek