Is it safe just to remove the installed app and then delete the folder in Django?

I am using Django and I have an app inside called “stuff”. I decided I didn’t need it anymore so I removed all usage of it from all my files, I removed it from settings.py under installed apps, and then I just deleted its entire folder.

Is that okay to do? So far everything seems to still be running fine and it no longer shows up in my admin panel which is what I want. I was reading some other posts on how to remove a Django App and they were doing a lot of extra things like this:

https://stackoverflow.com/questions/3329773/django-how-to-completely-uninstall-a-django-app#:~:text=To%20remove%20the%20app%20from,your%20PYTHONPATH%20where%20it%20resides.

Should I be worried something bad will happen down the road? I can makemigrations and changes and do everything perfectly fine currently.

Answer

In case the “stuff” app had some models, It is a good idea to remove the tables associated to them from the database. Although they should no interfer in the correct execution of your site.

The easiest way in my opinion is to do python manage.py migrate stuff zero, before doing all the operations you describe.

At this point, if you pushed your code to a production environment, it is probably better not to mesh with the database directly and leave it as it is.

In case you have not put your website in production, this is you don’t have any data in your production database, then you don’t have to worry about it since the app no longer exists.

I’ve never done that on production so I cannot tell you that in my experience all the other steps are not needed. But I don’t fell your approach is discorageous.