I want to create button(ADD TO CART) such that when a user clicks it, the item must be delete from the database

So you have some Data Collection that is showing in a repeater or a Dynamic Page and you want to remove the item from the Data Collection and Add it to the Wix Stores Cart?

Not Wix store cart but to my created page

Ok use remove to delete records, have you looked at the API Docs under Data, it shows samples now after they updated it.


Can you tell me the code for it like when i click the button, the selected item row must be deleted from the database

@shubhamtotla007 Will each row have a delete button ?