feat: add delete library and book functionality (#52) #54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_delete_library_book"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add web UI and API endpoints to fully remove a library or book from the system.
What it does
Delete Library
POST /library/{namespace}/deleteAPI endpointDelete Book
confirm()dialogPOST /library/{namespace}/book/{book}/deleteAPI endpointFiles changed
src/embedder/client.rsdelete_namespace()wrapper (SDK already hadnamespace_delete)src/library.rsKVS_NAMESPACEandKVS_LIB_PREFIXpub(crate)src/web/server.rsdelete_library(),delete_book(),remove_namespace(),toml_belongs_to_library()src/web/axum_server.rshandler_pdf_deletepatterntemplates/library.htmlScope decisions
Fixes #52
Add web UI and API endpoints to fully remove a library or book from the system. Deletion cleans up all data locations: - Disk: ~/hero/var/books/{library}/ directory - Book TOMLs in books_dir matching the library namespace - Embedder KVS: library_config:* and book:* keys - Embedder vectors: namespace deletion via namespace.delete RPC - In-memory namespace map - PDF cache files (book delete) UI: Delete Library button with confirmation modal on library page, per-book delete button with confirm() in the books table. API: POST /library/{namespace}/delete POST /library/{namespace}/book/{book}/delete Fixes #52Closing: all changes from this PR are already present in
developmentbranch (verified viagit merge-base --is-ancestor). Work consolidated into a new PR covering build system alignment and remaining features.mik-tf referenced this pull request2026-02-19 01:20:46 +00:00
mik-tf referenced this pull request2026-02-19 01:20:58 +00:00
Pull request closed