Can import ZIP
This commit is contained in:
@@ -97,3 +97,11 @@ pub async fn delete(id: AccountID) -> anyhow::Result<()> {
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Delete all the accounts of a user
|
||||
pub async fn delete_all_user(user: UserID) -> anyhow::Result<()> {
|
||||
for account in get_list_user(user).await? {
|
||||
delete(account.id()).await?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user