remove directory Permission denied code example Example: rm permission denied chmod -R 777 <folder-name> rm -rf <folder-name>