Skip to content
Back

User unable to delete document they created

  • 0
  • Databases
  • Web
  • Cloud
kittykat
2 Dec, 2025, 04:15

I am having a bit a database issue. I am making a music review website and I have successfully been able to create and update reviews as a dummy user, but no matter what I try I am unable to delete them. The way I have my database set up is that I have two separate tables: profiles and reviews. everything in the profiles table works when it comes to create/update/delete, but for some reason not in the reviews table. the corresponding userID does populate with their review in the reviews table as well. I have even tried playing around with permissions and even if I set the role to Any, it won't work. Has anyone else encountered this issue?

here's my delete funtion: async function deleteReview(id){ try { await dbDeleteReview(id); await renderReviews(); } catch (error) { console.error('Delete review error:', error); alert('Failed to delete review: ' + error.message); } }

TL;DR
Developers are unable to delete documents they created in a music review website. The issue lies in the deleteReview function. Ensure that the dbDeleteReview(id) function is correctly implemented and that the permissions are set up properly for review deletion. Double-check the database integration and user roles for the reviews table.
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