add admin command to delete all local media by a local user
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
e790785db8
commit
2b7e0dcb80
2 changed files with 26 additions and 1 deletions
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue