How to use api to delete all dns records of a domain name

How to use api to delete all dns records of a domain name?
or
How to delete all dns records of a domain name?
who know it?heip me ,thank you so much!

You can use the DNS Records for a Zone Properties.

First you LIST to get all records and their ID numbers. Then you DELETE each one. If they are many, write a script to handle it.
https://api.cloudflare.com/#dns-records-for-a-zone-properties