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? 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. 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
Archived
This topic is now archived and is closed to further replies.