nimeshkiranverma
nimeshkiranverma

Reputation: 1428

How to delete project in django

Initially, I had a single project in Django now I want to delete the last project and start a fresh new project with the same name as the last one. How should I do so? Can deleting the project folders be sufficient.

Upvotes: 21

Views: 63469

Answers (4)

Kunal Kumar
Kunal Kumar

Reputation: 1149

To delete the project you can delete the project folder. But this method is good only if you use SQLite as a database.

If you use any other database like Postgresql with Django, you need to delete the database manually.

If you are on VPS. Simply go to the folder where your project folder resides and put command rm -r projectfoldername

This should delete the folder and it's contents.

Upvotes: 6

Samyak Singh
Samyak Singh

Reputation: 11

Yes. Just Delete the folder. If the project is installed in your settings.py, remove it.

Upvotes: 0

Mukesh Yadav
Mukesh Yadav

Reputation: 2396

As @Neverbackdown said deleting folder would be sufficient, but along with that you would also want to delete database or tables.

Upvotes: 0

Vivek S
Vivek S

Reputation: 5550

Deleting the project folder is sufficient and make changes in your apache server too[if you have one].

Upvotes: 37

Related Questions