both with a string and with a variable it seems not to work. What am I doing wrong?
API
wixData.remove("myCollection", "00001")
.then( (results) => {
let item = results; //see item below
} )
.catch( (err) => {
let errorMsg = err;
} );
My code option 1
let theImageToRemove = itemData.image3
wixData.remove("Prodotti", theImageToRemove)
.then( (results) => {
let item = results;
console.log("Results: " + results)
} )
.catch( (err) => {
let errorMsg = err;
} );
My code option 2
let theImageToRemove = itemData.image3
wixData.remove("Prodotti", "wix:image://v1/14f014_9151ad2ba9e1495a9dc061064e7c120c~mv2.jpg/AdobeStock_270808675.jpg#originWidth=10000&originHeight=9996")
.then( (results) => {
let item = results;
console.log("Results: " + results)
} )
.catch( (err) => {
let errorMsg = err;
} );