Skip to content
Back

Swift: Response from .deleteDocument

  • 0
  • Databases
  • Apple
Jay
7 Jun, 2025, 19:51

According to the docs, in Swift when calling databases.deleteDocument the response is supposed to be 204 (No Content). However, we are finding the response is true on success or an error is thrown on fail. But the true response is actually ANY. Is this just an error in the documentation or is there more to it? https://appwrite.io/docs/references/cloud/client-apple/databases#deleteDocument

TL;DR
Developers are getting unexpected responses from the `.deleteDocument` method in Swift. The documentation states it should return 204 (No Content), but developers are either receiving a true response for success or an error for failure. The true response can actually be ANY. Unsure if this is a documentation error.
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