---
title: "Remove from a Brand Library"
method: DELETE
path: "/brands/{id}/library/{mediaId}"
tags: ["Library"]
---

# Remove from a Brand Library

`DELETE /brands/{id}/library/{mediaId}`

## Request

- Base URL: `https://www.rainbrand.com/api/v1`
- URL: `https://www.rainbrand.com/api/v1/brands/{id}/library/{mediaId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://www.rainbrand.com/api/auth/oauth2/authorize`
    - Token URL: `https://www.rainbrand.com/api/auth/oauth2/token`

Take a file out of a brand's Library without deleting it. Future Briefs, Brand Edits, and Brand Skill versions stop using it; published Brand Skills keep working. To delete the file, use its media family's delete endpoint.

## Path parameters

- `id` string, uuid, required: Brand ID
- `mediaId` string, uuid, required: Media ID

## Response `200`

OK

- object
  - `data` object, required
    - `id` string, uuid, required
    - `inLibrary` unknown, required

## Other responses

- `401`: 401
- `403`: 403
- `404`: 404
- `429`: 429
- `503`: 503

---

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