---
title: "Delete a league."
method: DELETE
path: "/api/league/{league}"
tags: ["League"]
---

# Delete a league.

`DELETE /api/league/{league}`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/league/{league}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/league/:league/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes the league after validating it can be deleted, removing its notes and logo.

## Path parameters

- `league` integer, required

## Response `200`

The league was deleted.

- object
  - `status` string

## Other responses

- `400`: The league could not be deleted (deletion validation failed).
- `403`: The user lacks the permission required to delete leagues.
- `404`: League not found.

---

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