removeMembersByUserIds

fun Lists.removeMembersByUserIds(    listId: Long,     userIds: List<Long>,     vararg options: Option): EmptyApiAction

Removes multiple members from a list, by specifying a comma-separated list of member ids or screen names. The authenticated user must own the list to be able to remove members from it. Note that lists can't have more than 500 members, and you are limited to removing up to 100 members to a list at a time with this method. Please note that there can be issues with lists that rapidly remove and add memberships. Take care when using these methods such that you are not too rapidly switching between removals and adds on the same list.

Twitter API reference

Receiver

Lists endpoint instance.

Return

EmptyApiAction.

Parameters

listId

The numerical id of the list.

userIds

A list of user IDs, up to 100 are allowed in a single request.

options

Optional. Custom parameters of this request.


fun Lists.removeMembersByUserIds(    slug: String,     ownerScreenName: String,     userIds: List<Long>,     vararg options: Option): EmptyApiAction

Removes multiple members from a list, by specifying a comma-separated list of member ids or screen names. The authenticated user must own the list to be able to remove members from it. Note that lists can't have more than 500 members, and you are limited to removing up to 100 members to a list at a time with this method. Please note that there can be issues with lists that rapidly remove and add memberships. Take care when using these methods such that you are not too rapidly switching between removals and adds on the same list.

Twitter API reference

Receiver

Lists endpoint instance.

Return

EmptyApiAction.

Parameters

slug

You can identify a list by its slug instead of its numerical id. If you decide to do so, note that you'll also have to specify the list owner using the owner_id or owner_screen_name parameters.

ownerScreenName

The screen name of the user who owns the list being requested by a slug.

userIds

A list of user IDs, up to 100 are allowed in a single request.

options

Optional. Custom parameters of this request.


fun Lists.removeMembersByUserIds(    slug: String,     ownerId: Long,     userIds: List<Long>,     vararg options: Option): EmptyApiAction

Removes multiple members from a list, by specifying a comma-separated list of member ids or screen names. The authenticated user must own the list to be able to remove members from it. Note that lists can't have more than 500 members, and you are limited to removing up to 100 members to a list at a time with this method. Please note that there can be issues with lists that rapidly remove and add memberships. Take care when using these methods such that you are not too rapidly switching between removals and adds on the same list.

Twitter API reference

Receiver

Lists endpoint instance.

Return

EmptyApiAction.

Parameters

slug

You can identify a list by its slug instead of its numerical id. If you decide to do so, note that you'll also have to specify the list owner using the owner_id or owner_screen_name parameters.

ownerId

The user ID of the user who owns the list being requested by a slug.

userIds

A list of user IDs, up to 100 are allowed in a single request.

options

Optional. Custom parameters of this request.