---
title: "Delete all test data"
method: DELETE
path: "/v1/test-data"
tags: ["Test Data"]
---

# Delete all test data

`DELETE /v1/test-data`

## Request

- Base URL: `https://api.astrocal.dev`
- URL: `https://api.astrocal.dev/v1/test-data`
- Auth: HTTP bearer

Deletes all test event types, availability rules, and bookings for the authenticated organization. Only works with test API keys (ac_test_*). Returns 400 if called with a live key.

## Response `200`

Test data deleted

- object
  - `deleted` object, required
    - `bookings` integer, required
    - `availability_rules` integer, required
    - `event_types` integer, required

## Other responses

- `400`: Bad request — must use a test API key
- `401`: Unauthorized

---

[API](https://skmtc.dev/astrocal/apis/astrocal-api.md) · [All operations](https://skmtc.dev/astrocal/apis/astrocal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/astrocal/apis/astrocal-api/revisions/3b953e19a348?raw)
