add admin command to delete all local media by a local user

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-08-25 12:24:08 -04:00 committed by Jason Volk
parent e790785db8
commit 2b7e0dcb80
2 changed files with 26 additions and 1 deletions

View file

@ -32,8 +32,18 @@ pub(super) enum MediaCommand {
/// - The duration (at or after), e.g. "5m" to delete all media in the
/// past 5 minutes
duration: String,
/// Continues deleting remote media if an undeletable object is found
#[arg(short, long)]
force: bool,
},
/// - Deletes all the local media from a local user on our server
DeleteAllFromUser {
username: String,
/// Continues deleting media if an undeletable object is found
#[arg(short, long)]
force: bool,
},
}