Reputation: 1
Starting out with Ruby on Rails Installfest where it has me create and deploy an app. Ran into an issue when trying to deploy the app so wanted to go back and start over, however when prompted to create directory:
mkdir railsbridge
I get
mkdir: railsbridge: File exists
How can I remove this existing directory to start over completely?
Upvotes: 0
Views: 83
Reputation: 71
If your railsbridge
folder isn't empty, then rmdir
isn't going to work. Instead, you can try rm -rf railsbridge
to force removing directories and their contents recursively.
References:
rmdir
- http://explainshell.com/explain?cmd=rmdir
rm -rf
- http://explainshell.com/explain?cmd=rm+-rf
Upvotes: 1