Added delete all files

This commit is contained in:
2024-05-31 19:37:45 +02:00
parent dbb53ca9da
commit 7b683ce0a0
4 changed files with 45 additions and 3 deletions

View File

@@ -111,4 +111,21 @@ export class AdminuiComponent {
console.error(error);
}
}
async deleteAllFileUploads() {
try {
const response = await axios({
method: 'delete',
url: this.developmentStore.getBaseUrl() + 'api/v1/secure/files',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + await firstValueFrom(this.authStore.token$)
}
});
console.log(this.statistics)
} catch (error) {
console.error(error);
}
}
protected readonly confirm = confirm;
}