@textile/hub > Client > deleteDB
Client.deleteDB() method
Deletes an entire DB.
Signature:
deleteDB(threadID: ThreadID): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
threadID | ThreadID | the ID of the database. |
Returns:
Promise<void>
Example
import {Client, ThreadID} from '@textile/hub'
async function deleteDB (client: Client, threadID: ThreadID) {
await client.deleteDB(threadID)
return
}