> For the complete documentation index, see [llms.txt](https://docs.mburger.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mburger.cloud/ios-docs/admin/delete-a-media.md).

# Delete a media

{% hint style="info" %}
You can delete a media (an image or a video), giving its id with the function.&#x20;
{% endhint %}

The id of the media is the field id of the objects **`MBImage`** and **`MBFile`**.

```swift
MBAdmin.deleteMedia(withMediaId: MEDIA_ID, success: {
            
}, failure: { error in
            
})
```
