---
title: "remove media"
method: DELETE
path: "/campaigns/{campaign}/media/{uuid}"
tags: ["Media"]
---

# remove media

`DELETE /campaigns/{campaign}/media/{uuid}`

Remove a media item from the campaign media library by UUID. The underlying file is not deleted.

#### For custom components:
`RaiselyComponents.api.one('campaigns', '{campaign}').one('media', '{uuid}').delete('{uuid}', data = {}, params = {}, headers = {}) => Promise<{result}>`

 :fa-gears: See [Restie Response Data](https://github.com/raisely/restie#reading-and-handling-responses) for a more detailed overview of responses through the client wrapper

## Path parameters

- `campaign` string, required
- `uuid` string, required

## Headers

- `Authorization` string

## Response `200`

Media item removed

- object
  - `data` object
    - `success` boolean

## Other responses

- `401` — Authorization credentials were missing or invalid
- `403` — The user is authenticated, but is not allowed to perform the requested operation
- `404` — Media item not found
- `410` — The requested record no longer exists, or that API has been deprecated
- `429` — You have made too many requests to the given endpoint, please try again later
- `500` — An unexpected error has occurred with Raisely. If the error persists you can contact support@raisely.com

---

[API](https://skmtc.dev/raisely/apis/raisely-api.md) · [All operations](https://skmtc.dev/raisely/apis/raisely-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/raisely/raisely-api/revisions/d7f8dd294cb0/schema)
