(bind-func sys_dir_remove (lambda (dirname) (let ((pool (apr_pool_create)) (res APR_SUCCESS)) (set! res (apr_dir_remove (cstring dirname) pool)) (apr_pool_destroy pool) res)))