---
title: "Cleanup Expired Members"
method: POST
path: "/v2/internal/cleanup-expired-members"
tags: ["v2 - Internal"]
---

# Cleanup Expired Members

`POST /v2/internal/cleanup-expired-members`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/internal/cleanup-expired-members`
- Auth: HTTP bearer

Remove workspace members whose expires_at has passed.

Iterates over all workspaces, filters out expired members, and saves
the updated member list. Called by Cloud Scheduler or manually.

## Query parameters

- `batch_size` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
