Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 61445be

Browse files
fzrfzr
authored andcommitted
Documentation
1 parent ceb8199 commit 61445be

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@ Table<Actor> actorTable = base.table("Actors", Actor.class);
8787
Actor actor = actorTable.find("rec514228ed76ced1");
8888
```
8989

90+
## Destroy
91+
Use Destroy to delete a specific records of table:
92+
93+
+ `table(name).destroy(String id)`: delete record with `id` of table `name`
94+
95+
### Example
96+
```Java
97+
// detailed Example see TableDestroyTest.java
98+
Base base = airtable.base(AIRTABLE_BASE);
99+
Table<Actor> actorTable = base.table("Actors", Actor.class);
100+
actorTable.destroy("recapJ3Js8AEwt0Bf");
101+
```
102+
90103
## Annotations
91104

92105
Use the Gson Annotation @SerializedName to annotate Names which contain - or an emtpy Charakter.
@@ -116,7 +129,7 @@ Use the Gson Annotation @SerializedName to annotate Names which contain - or an
116129

117130
+ [ ] Create Record
118131
+ [ ] Update Record
119-
+ [ ] Delete Record
132+
+ [x] Delete Record
120133
+ [ ] Replace Record
121134
+ General requirements
122135
+ [ ] Automatic ObjectMapping

src/main/java/com/sybit/airtable/Table.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,13 @@ public T replace(T item) {
317317

318318
throw new UnsupportedOperationException("not yet implemented");
319319
}
320+
321+
/**
322+
* Delete Record by given id
323+
*
324+
* @param id
325+
* @throws AirtableException
326+
*/
320327

321328
public void destroy(String id) throws AirtableException {
322329

0 commit comments

Comments
 (0)