![png-transparent-computer-terminal-computer-icons-linux-console-terminal-emulator-linux-logo-desktop-wallpaper-linux-thumbnail](https://codingstories.net/wp-content/uploads/2021/06/png-transparent-computer-terminal-computer-icons-linux-console-terminal-emulator-linux-logo-desktop-wallpaper-linux-thumbnail.png)
When you’re trying to delete the contents of a large directoty, for example php sessions, you might come across this error when running:
rm -rf /path/to/folder
To solve this issue I use the following:
# find /path/to/folder -name '*' | xargs rm
Make sure the folder path you provide is correct, this action is destructive and non reversible.
Leave a Reply