Delete specific row after wixData.query

@ajithkrr Still didn’t work… :disappointed_relieved:

At first, I tried to copy your code but there’s an error in this part of the code.

wixData.remove("ReviewsPermission", ownerId)

I noticed that ownerId was undefined, and so I tried to make it this way.

wixData.query("ReviewsPermission")
.eq("_owner", wixUsers.currentUser.id)
.find()
.then((result)=>{
 let ownerId = result.items[0]._owner;
 wixData.remove("ReviewsPermission", ownerId)
})

And still didn’t work.