X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch.h;h=85b56bf1e4c34e96fe37e4df7a06eb4b762f2e75;hp=c5f7dcb4b9f10f28b4eab46e4844d7f06680fc05;hb=727fcd18c6a3897622582e71a2d71081e3ae40ea;hpb=0e03ff389443aa062d30e6949bb3220563c474be diff --git a/lib/notmuch.h b/lib/notmuch.h index c5f7dcb4..85b56bf1 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -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. */