You can pretty much use that code anywhere. Depending on your use case and the sensitivity of the data, you might want to put this code in a backend file, and invoke it from a password protected page.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| removeAll() function in wixData please | 10 | 110 | November 21, 2018 | |
| Dropping content of a Wix Collection. | 18 | 293 | April 26, 2018 | |
| DELETE all rows in a data collection?? | 4 | 1917 | June 10, 2020 | |
| Rename or Delete old and unused database collections | 14 | 3875 | June 15, 2018 | |
| Desperately finding a solution to delete rows in Collections | 17 | 1320 | January 5, 2020 |