zohab Posted May 21, 2009 Share Posted May 21, 2009 hi all, I want to remove non-empty directory from Linux. If i use [root@localhost]#rmdir directoryname then it gives me an error message as Failed to remove 'directoryname' :directory not empty any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/159042-solved-remove-non-empty-directory-in-linux-os-using-rmdir-command/ Share on other sites More sharing options...
Daniel0 Posted May 21, 2009 Share Posted May 21, 2009 Use rm -rf directoryname. The -r flag means recursive and the -f flag means force (i.e. ask no questions). Be careful with that command though. Quote Link to comment https://forums.phpfreaks.com/topic/159042-solved-remove-non-empty-directory-in-linux-os-using-rmdir-command/#findComment-839434 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.