Delete a Row

A row can be deleted from a table simply by passing the ROWIDas a parameter to the deteleRow() method. Multiple rows cannot be deleted at a time.

The promise returned here will be resolved to a row object which is a JSON.

    
copy
//Use Table Meta Object to delete a single row using ROWID which returns a promise let datastore = app.datastore(); let table = datastore.table('SampleTable'); let rowPromise = table.deleteRow(1510000000109476); rowPromise.then((row) => { console.log(row); });

Last Updated 2023-09-03 01:06:41 +0530 +0530

ON THIS PAGE