delete folder from terminal code example
Example 1: delete directory mac terminal
rm -r dirname
Example 2: delete file linux terminal
rm filename
# or add -rf if you don't want to see confirm
Example 3: delete directory terminal
rm -r directory-name
Example 4: remove directory from linux
rm -r filename
rm -rf filename
this command remove the directory and subdirectory forecefully
Example 5: terminal delete fle
rm MyFile.rtf