Button to delete a data collection entry (including _id)

Is there a way to create a button such that when it is pressed an _id is searched for in a collection, and then that entire row is deleted, including the _id.

I am assuming that a query is created such as…
wixData.query(“DataCollection”)
.eq(“_Id”, +($w(“#text1”).text)) ← assuming it is a text box used.
.find()
.then((results) => {
…etc.

…but not sure what code to put in the query.

Thanks

Hey Eaton,

If you already have the id, why not just use the remove() function?

: ) That looks easy, will do that! Didn’t realise that there was a remove function.

Thanks!