How to erase all CloudKit data

I'm using SwiftData, and I'm using iCloud's CloudKit feature to back up my data.

The problem here is that once you start backing up your data, you can't erase it completely.

Even if the user adds 4 data and erases 4 again, I'm using about 2.5kb.

I don't know how the user using the app will accept this.

I'm trying to provide the user with the ability to erase data at once, what should I do??

How to erase all CloudKit data
 
 
Q