Skip to main content

Overview

useRemoveHost returns a callable that removes a user from an event’s hostIds. Host-only. Rejected with event/last-host (409) if the removal would leave the event with no hosts.

Usage Example

Parameters

string
required
The event ID.
string
required
The host to remove.

Returns

Returns a Promise<Event> — the Event with the new hostIds.

See Also