Q. Which method is used to delete a record in Django models?

  • (A) destroy()
  • (B) remove()
  • (C) delete()
  • (D) erase()
πŸ’¬ Discuss
βœ… Correct Answer: (C) delete()
Explanation: `delete()` deletes the object from the database.
Explanation by: Mr. Dubey
`delete()` deletes the object from the database.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
85
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate