This repository was archived by the owner on Mar 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/com/sybit/airtable Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,6 +87,19 @@ Table<Actor> actorTable = base.table("Actors", Actor.class);
8787Actor 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
92105Use 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments