*** id: 9e5f277b-e55b-461f-bcd6-0323facc9dcf title: demote slug: /node/reference/video/room-session/demote description: demote method for the RoomSession class. max-toc-depth: 3 ---------------- [link-1]: /docs/server-sdk/v3/node/reference/video/room-session/promote ### demote * **demote**(`params`): `Promise` Demotes a participant from "member" to "audience". See [promote][link-1]. #### Parameters | Name | Type | Description | | :--------------------- | :------------------------------------------ | :--------------------------------------------------------------------------------------------------------------- | | `params` | `Object` | - | | `params.memberId` | `string` | Id of the member to affect. | | `params.mediaAllowed?` | `"all"` \| `"audio-only"` \| `"video-only"` | Specifies the media that the client will be allowed to *receive*. An audience participant cannot send any media. | #### Returns `Promise` #### Example ```javascript await roomSession.demote({ memberId: "de550c0c-3fac-4efd-b06f-b5b8614b8966", mediaAllowed: "all", }); ```