Skip to content
Back

deleteDocument shows The current user is not authorized to perform the requested action.

  • 0
  • Databases
  • Web
  • Cloud
Mohd Nehal Khan
17 Aug, 2025, 15:02

my application is an ecomm app that list the products and i just want to add the delete functionality to delete the product the user has permission in appwrite console to delete and update it , has also created that product

My product.js code(service i created)

TL;DR
Developers encountering 'The current user is not authorized to perform the requested action' error when attempting to delete a product in an e-commerce app using Redux Toolkit and Redux Persist. - User has appropriate permissions set in Appwrite console. - Check the code in AllProduct.jsx and Product.js for any authorization issues. - Ensure the correct authentication is used when triggering the delete functionality. Solution: - Check the user authentication status and token validity. - Confirm that the delete request includes the necessary user authorization credentials.
Mohd Nehal Khan
17 Aug, 2025, 15:06

I used redux toolkit , redux persist for state management AllProduct.jsx code where i added delete product functionality

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