> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # demote > demote method for the RoomSession class. ### demote * **demote**(`params`): `Promise` Demotes a participant from "member" to "audience". See [join](#join) and [promote](#promote). #### Parameters **`params`** `object` Object containing the parameters of the method. --- **`memberId`** `string` Id of the member to affect. If omitted, affects the current member. --- **`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` #### Permissions * `room.member.demote` You need to specify the permissions when [creating the Video Room Token](/docs/apis/rest/video/room-tokens/create-room-token) on the server side. #### Example ```javascript await roomSession.demote({ memberId: "de550c0c-3fac-4efd-b06f-b5b8614b8966", mediaAllowed: "all", }); ``` > demote method for the RoomSession class.