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, developers can iterate over each document and delete them by document id. There is no built-in .deleteAll function for collections in Swift.
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