]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch.h
lib: add interface to delete directory documents
[notmuch] / lib / notmuch.h
index c5f7dcb4b9f10f28b4eab46e4844d7f06680fc05..85b56bf1e4c34e96fe37e4df7a06eb4b762f2e75 100644 (file)
@@ -1761,6 +1761,16 @@ notmuch_directory_get_child_files (notmuch_directory_t *directory);
 notmuch_filenames_t *
 notmuch_directory_get_child_directories (notmuch_directory_t *directory);
 
+/**
+ * Delete directory document from the database, and destroy the
+ * notmuch_directory_t object. Assumes any child directories and files
+ * have been deleted by the caller.
+ *
+ * @since libnotmuch 4.3 (notmuch 0.21)
+ */
+notmuch_status_t
+notmuch_directory_delete (notmuch_directory_t *directory);
+
 /**
  * Destroy a notmuch_directory_t object.
  */