Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Maxwell Kendall
seal-mask
.a{fill-rule:evenodd;}techdegree
Maxwell Kendall
Front End Web Development Techdegree Student 12,102 Points

Removing Git Repo

I have created a git repo

git init

the current folder is "project_folder"

toe delete, all i need to do is go rm -r project_folder

but I keep getting it wrong, even when I try rm -r ~/project_folder and ~/project_folder/,git/

I've tried every variation of this very simple command and it wont work.

Please help.

Thanks.

1 Answer

Hey Maxwell,

Type pwd and check your current working directory. If you're inside of the project_folder directory, you will be unable to delete it. If this is the case, go back one directory by typing cd .. and then you should be able to remove the project_folder via rm -r project_folder.

Just to check, are you using Terminal? Or are you on Windows? Can you also post your error log?