---
title: "Cleanup Expired Try Now"
method: POST
path: "/v2/internal/cleanup-expired-try-now"
tags: ["v2 - Internal"]
---

# Cleanup Expired Try Now

`POST /v2/internal/cleanup-expired-try-now`

## 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-try-now`
- Auth: HTTP bearer

Delete old try-now session documents.

- Expired/abandoned sessions: deleted after retention_days (default 30)
- Claimed sessions: deleted after claimed_retention_days (default 7)
  since data is already in profiles/{profileId}.try_now_metadata

Workspace + media are already cleaned by cleanup-expired-workspaces.
Called by Cloud Scheduler weekly (e.g., Sunday 4 AM AEST).

## Query parameters

- `retention_days` integer
- `claimed_retention_days` integer
- `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)
