Skip to main content

tuwunel_admin/media/
delete.rs

1use ruma::OwnedMxcUri;
2use tuwunel_core::{Err, Result};
3
4use crate::admin_command;
5
6#[admin_command]
7pub(super) async fn delete(&self, mxc: OwnedMxcUri) -> Result {
8	self.services
9		.media
10		.delete(&mxc.as_str().try_into()?)
11		.await?;
12
13	Err!("Deleted the MXC from our database and on our filesystem.")
14}