Posts

Showing posts with the label delete

delete() method in Django

If you want to delete an object, you can do it from the object instance using the delete() method. Ex:. post = Posts.objects.get(id=1) post.delete()