Function to remove rooms from Appwrite and Livekit.
Receives ID of the room to be deleted, and removes the room from Appwrite.
Parameters
Name | Description | Location | Type | Sample Value |
---|---|---|---|---|
appwriteRoomDocId | Document ID of the room | Body | String | jcbd...kdsn |
Response
Sample 200
Response:
{
"msg": "Room deleted successfully"
}
Sample 400
Response:
{
"msg": "Missing required parameter: appwriteRoomDocId"
}
Sample 500
Response:
{
"msg": "Room deletion failed"
}
Setting | Value |
---|---|
Runtime | Node (18.0) |
Entrypoint | src/main.js |
Build Commands | npm install && npm run start |
Permissions | Users |
Timeout (Seconds) | 15 |
API Key to use Appwrite Sever SDK.
Question | Answer |
---|---|
Required | Yes |
Sample Value | 62...97 |
Documentation | Appwrite API Keys |
Database ID of master database in appwrite.
Question | Answer |
---|---|
Required | Yes |
Sample Value | Zjc...5PH |
Documentation | Resonate |
Collection ID of rooms collection.
Question | Answer |
---|---|
Required | Yes |
Sample Value | NXOi3...IBHDa |
Documentation | Resonate |
Collection ID of participants collection.
Question | Answer |
---|---|
Required | Yes |
Sample Value | NXOi3...IBHDa |
Documentation | Resonate |
Host URL of Livekit instance.
Question | Answer |
---|---|
Required | Yes |
Sample Value | https://******.livekit.cloud |
Documentation | Livekit |
API Key to use Livekit Server SDK.
Question | Answer |
---|---|
Required | Yes |
Sample Value | AP......9X |
Documentation | Livekit |
API Secret to use Livekit Server SDK.
Question | Answer |
---|---|
Required | Yes |
Sample Value | HC1Itf...........dAAKF5o |
Documentation | Livekit |