> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Remove team user

> Removes a user from a TidyCal team.

`tidyCal.removeTeamUser` removes one team-user record.

```ts automations/remove-tidycal-team-user.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { tidyCal } from "automate.ax/tidycal"

export default automation("Remove TidyCal team user", () => {
  onDashboardRun({ title: "Remove TidyCal team user" })
  tidyCal.removeTeamUser({ teamId: 123, teamUserId: 456 })
})
```

Team actions require an Agency or Pro plan. Use a team-user record `id` from `listTeamUsers` or `teamUserId` from `addTeamUser`, not an account user ID. The result contains TidyCal's confirmation message. Removing a missing or already-removed user fails.
