Skip to content

Instantly share code, notes, and snippets.

@egitimplus
Last active October 29, 2019 12:34
Show Gist options
  • Save egitimplus/c4c6357aa07f2f98df501b4afb565f8f to your computer and use it in GitHub Desktop.
Save egitimplus/c4c6357aa07f2f98df501b4afb565f8f to your computer and use it in GitHub Desktop.
delete()
user = User.objects.get(pk=2)
user.delete()
products = Product.objects.all()
products.delete()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment