appwrite/docs/examples/1.8.x/console-web/examples/tablesdb/delete-index.md
2025-08-23 22:52:20 +12:00

405 B

import { Client, TablesDB } from "@appwrite.io/console";

const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID

const tablesDB = new TablesDB(client);

const result = await tablesDB.deleteIndex({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '' });

console.log(result);