Search

Remove From Channel

Articles

Use this function to remove users from the given channel.

Syntax

Remove From Channel (token, channel_id, user_id)

Parameters

Input Parameter Name Description
token Authentication token
channel_id ID of the channel to remove the user
user_id ID of the user to be removed from the channel

Returns

Return Value Description
Output
  • On Success: 1, Removed The User Successfully
  • On Failure: 0, Error Message

Sample

Remove From Channel (ABCDE, NC-45, PPL-223)

  • Uses the token ‘ABCDCEF’ to authenticate the connection to the Slack application, removes the user with ID ‘PPL-223’ from the channel with ID ‘NC-45’.
    Returns ‘Removed The User Successfully’ on removing the user.

To view all the Slack functions, click here.

Did you find what you were looking for?