Skip to content

Latest commit

 

History

History

delete-room

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Room Deletion function

Function to remove rooms from Appwrite and Livekit.

🧰 Usage

POST /

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"
}

⚙️ Configuration

Setting Value
Runtime Node (18.0)
Entrypoint src/main.js
Build Commands npm install && npm run start
Permissions Users
Timeout (Seconds) 15

🔒 Environment Variables

APPWRITE_API_KEY

API Key to use Appwrite Sever SDK.

Question Answer
Required Yes
Sample Value 62...97
Documentation Appwrite API Keys

MASTER_DATABASE_ID

Database ID of master database in appwrite.

Question Answer
Required Yes
Sample Value Zjc...5PH
Documentation Resonate

ROOMS_COLLECTION_ID

Collection ID of rooms collection.

Question Answer
Required Yes
Sample Value NXOi3...IBHDa
Documentation Resonate

PARTICIPANTS_COLLECTION_ID

Collection ID of participants collection.

Question Answer
Required Yes
Sample Value NXOi3...IBHDa
Documentation Resonate

LIVEKIT_HOST

Host URL of Livekit instance.

Question Answer
Required Yes
Sample Value https://******.livekit.cloud
Documentation Livekit

LIVEKIT_API_KEY

API Key to use Livekit Server SDK.

Question Answer
Required Yes
Sample Value AP......9X
Documentation Livekit

LIVEKIT_API_SECRET

API Secret to use Livekit Server SDK.

Question Answer
Required Yes
Sample Value HC1Itf...........dAAKF5o
Documentation Livekit