I created a "Delete Account" button for my site visitors, but the button doesn't work.

I created a “Delete Account” button for my site visitors, but the button doesn’t work. Am I supposed to create a “.js” file first or should I use the page’s code panel? Plus should I have to first create a Database(Dataset)?

At this moment, you cannot do this feature without code. Please see the Velo reference: wix user backend: deleteUser()

Please note that it is a backend function so you need to create backend jsw file and code on the front end as well

Thanks [@Certified Code Global](Global](https://www.wix.com/velo/profile/certifiedcode/profile)) !

When I test my code, it brings an error.

What is the error?

This first one is my code.


Then these are the errors.

You cannot use $w element on backend. This function should be called from front end and backend should return success or not.