databse wipe

This commit is contained in:
2026-05-10 17:08:28 +02:00
parent d69169807c
commit 881604b4a5
4 changed files with 32 additions and 0 deletions
+11
View File
@@ -148,6 +148,17 @@
</div>
</form>
<section class="form-section danger-zone">
<h2>Danger zone</h2>
{% if request.query_params.get("reset") %}
<div class="alert alert-success">Sync data cleared — all processed zip and book records have been deleted.</div>
{% endif %}
<p class="muted small">Deletes all records of processed zips, uploaded books, and sync run history. Your settings are kept. Use this to start fresh after test runs.</p>
<form method="post" action="/settings/reset-sync-data" onsubmit="return confirm('Delete all sync data? This cannot be undone.')">
<button type="submit" class="btn btn-danger">Delete all sync data</button>
</form>
</section>
<script>
function toggleAuth(method) {
document.getElementById("row-key").style.display = method === "key" ? "" : "none";