How to delete all record in doctype?

delete all record , 10000 records

Example: if you want to remove the bulk record then you can use the system console:

todos = frappe.get_all("ToDo", pluck="name")

for todo in todos:
    frappe.delete_doc("ToDo", todo)

For more details, plesae check the video of the system console: https://youtu.be/cJEUSEdxafs?si=625q_f90mmlADooO

2 Likes

Masterlist Data is Doctype

Check the video, that i provieded.

1 Like