{"id":88,"date":"2023-08-16T13:10:02","date_gmt":"2023-08-16T13:10:02","guid":{"rendered":"http:\/\/techliness.com\/?p=88"},"modified":"2023-08-19T05:30:43","modified_gmt":"2023-08-19T05:30:43","slug":"linux-how-to-delete-empty-directories","status":"publish","type":"post","link":"https:\/\/techliness.com\/?p=88","title":{"rendered":"Linux &#8211; How to delete empty directories"},"content":{"rendered":"\n<p>Sometimes, we may have a bunch of empty directories left behind by certain scripts or programs. The below command allows us to get rid of these.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find &lt;path-parent> -empty -type d -delete\n\n\neg. find . -empty -type d -delete<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, we may have a bunch of empty directories left behind by certain scripts or programs. The below command allows us to get rid of these.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/techliness.com\/index.php?rest_route=\/wp\/v2\/posts\/88"}],"collection":[{"href":"https:\/\/techliness.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techliness.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techliness.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techliness.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88"}],"version-history":[{"count":2,"href":"https:\/\/techliness.com\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/techliness.com\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions\/90"}],"wp:attachment":[{"href":"https:\/\/techliness.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techliness.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techliness.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}