delete object from table django
First, you need to import the model of the object you want to delete:
from myapp.models import YourModelName
Then, retrieve the object from the database:
obj = YourModelName.objects.get(id=your_id)
Finally, delete the object:
obj.delete()