Skip to content

Commit

Permalink
add delete method
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Mar 29, 2024
1 parent 1f5f396 commit 2196275
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist/
node_modules
scripts/
scripts/
.baserowrc
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,8 @@ export class BaserowSdk {
);
return data;
}

public async deleteRow(tableId: number, rowId: number): Promise<void> {
await c.delete(`/database/rows/table/${tableId}/${rowId}/`);
}
}

0 comments on commit 2196275

Please sign in to comment.