Add function to delete exported files

This commit is contained in:
JonnyWong16 2020-08-03 15:32:24 -07:00
commit 8b8afacaea
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
6 changed files with 116 additions and 9 deletions

View file

@ -2308,6 +2308,12 @@ $(document).ready(function() {
confirmAjaxCall(url, msg);
});
$("#clear_exports").click(function () {
var msg = 'Are you sure you want to clear the Tautulli metadata exports?';
var url = 'delete_export?delete_all=true';
confirmAjaxCall(url, msg);
});
$("#clear_logs").click(function () {
var msg = 'Are you sure you want to clear the Tautulli logs?';
var url = 'delete_logs';