aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdbook6
1 files changed, 6 insertions, 0 deletions
diff --git a/dbook b/dbook
index dc71f1d..e1c082c 100755
--- a/dbook
+++ b/dbook
@@ -262,6 +262,12 @@ insert|save)
;;
rm)
key="${1:-$(key_menu)}" || exit 1
+
+ val="$(parse_data getval "$key")"
+ case "$val" in
+ ${book_data}/*) rm "$val";;
+ esac
+
rm_data "$key"
;;
"")