2025-08-20 07:22:48 +00:00
|
|
|
import io.appwrite.Client
|
|
|
|
|
import io.appwrite.coroutines.CoroutineCallback
|
2025-08-23 10:52:20 +00:00
|
|
|
import io.appwrite.services.TablesDB
|
2025-08-20 07:22:48 +00:00
|
|
|
|
|
|
|
|
val client = Client(context)
|
|
|
|
|
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
|
|
|
|
.setProject("<YOUR_PROJECT_ID>") // Your project ID
|
|
|
|
|
|
2025-08-23 10:52:20 +00:00
|
|
|
val tablesDB = TablesDB(client)
|
2025-08-20 07:22:48 +00:00
|
|
|
|
2025-08-20 14:20:05 +00:00
|
|
|
val result = tablesDB.deleteRow(
|
2025-08-20 07:22:48 +00:00
|
|
|
databaseId = "<DATABASE_ID>",
|
|
|
|
|
tableId = "<TABLE_ID>",
|
|
|
|
|
rowId = "<ROW_ID>",
|
2025-10-09 08:04:50 +00:00
|
|
|
transactionId = "<TRANSACTION_ID>", // (optional)
|
2025-08-20 07:22:48 +00:00
|
|
|
)
|