Variable: org-attach-sync-delete-empty-dir
org-attach-sync-delete-empty-dir is a customizable variable defined in
org-attach.el.gz.
Value
query
Documentation
Determine what to do with an empty attachment directory on sync.
When set to nil, don't touch the directory. When set to query,
ask the user instead, else remove without asking.
This variable was added, or its default value changed, in Org version
9.5.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-attach.el.gz
(defcustom org-attach-sync-delete-empty-dir 'query
"Determine what to do with an empty attachment directory on sync.
When set to nil, don't touch the directory. When set to `query',
ask the user instead, else remove without asking."
:group 'org-attach
:package-version '(Org . "9.5")
:type '(choice
(const :tag "Never delete" nil)
(const :tag "Always delete" t)
(const :tag "Query the user" query)))