Skip to content
Init is coming / May 19 - 23
Back

Swift: Delete All Documents

  • 0
  • Apple
Jay
8 May, 2025, 22:09

In Swift, how does one delete all documents in the collection. Is the solution to iterate over each document to delete it by document id? Or is there a .deleteAll function?

TL;DR
To delete all documents in a collection in Swift, you need to iterate over each document and delete it by document id. There isn't a .deleteAll function available for this task.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more