Back

[SOLVED] The database is being deleted without my knowledge

  • 0
  • Databases
Sabit
21 Apr, 2023, 04:52

Hello! When I delete a collection via dart sdk the current database will be deleted too, why is this happening? I don't have the code to delete the database. By

TL;DR
The user was experiencing issues with deleting a specific user from permission lists via dart sdk. They were advised to check if the user's ID is empty before executing the removal process. Another user mentioned that deleting a document can also cause the collection to be deleted, and deleting both the collection and document can result in the deletion of the entire database. The cause of this issue was not determined in the thread.
Sabit
21 Apr, 2023, 05:31

deleting the collection and document will also delete the database

Drake
21 Apr, 2023, 05:52

This can happen if you're passing an empty string for the ID

Sabit
21 Apr, 2023, 05:53

Interestingly, after deleting the document, the collection will also be deleted.

Drake
21 Apr, 2023, 05:54

No, that shouldn't happen

Sabit
21 Apr, 2023, 06:17

Thank you! You were right. I checked before executing, id is empty and not. After that everything was fine

Sabit
21 Apr, 2023, 11:44

How can I remove user rights via dart sdk on selected collection

Ponguta_
21 Apr, 2023, 15:29

What do you want to do?

Sabit
21 Apr, 2023, 15:35

I want to remove a specific user from permission lists via dart sdk

Sabit
21 Apr, 2023, 15:39

I tried to create a group and add selected users there. But when creating a group, an error appeared about this, I already wrote in another chat. So instead I created a collection for the group chat and added the group members as a permission that way. In principle, everything works except for deleting a specific user.

Drake
21 Apr, 2023, 16:47

best to continue this in the other post

Drake
27 Apr, 2023, 20:46

[SOLVED] The database is being deleted without my knowledge

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