File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
astra-db-client/src/test/java/com/dtsx/astra/sdk/documentation Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 44import com .dtsx .astra .sdk .AstraDBCollection ;
55
66public class ClearCollection {
7- public static void main (String [] args ) {
7+ public static void main (String [] args ) {
8+ AstraDB db = new AstraDB ("<token>" , "<api_endpoint>" );
9+ AstraDBCollection collection = db .createCollection ("collection_vector1" , 14 );
810
9- // Accessing existing DB
10- AstraDB db = new AstraDB ("<token>" , "<api_endpoint>" );
11-
12- // Access existing collection
13- AstraDBCollection collection = db .createCollection ("collection_vector1" , 14 );
14-
15- // Clear collection
16- collection .deleteAll ();
17-
18- }
11+ // Delete all rows from an existing collection
12+ collection .deleteAll ();
13+ }
1914}
You can’t perform that action at this time.
0 commit comments