{"id":226267,"date":"2019-01-14T16:47:43","date_gmt":"2019-01-14T08:47:43","guid":{"rendered":"http:\/\/magicalbits.net\/?p=226267"},"modified":"2019-01-14T16:47:43","modified_gmt":"2019-01-14T08:47:43","slug":"find-delete-files-older-than-x-days-unix-linux-stack-exchange","status":"publish","type":"post","link":"https:\/\/magicalbits.net\/?p=226267","title":{"rendered":"find &#8211; Delete files older than X days + &#8211; Unix &#038; Linux Stack Exchange"},"content":{"rendered":"<blockquote><p>I have found the command to delete files older than 5 days in a folderfind \/path\/to\/files* -mtime +5 -exec rm {} \\;But how do I also do this for subdirectories in that folder?<\/p><\/blockquote>\n<p>Source: <em><a href=\"https:\/\/unix.stackexchange.com\/questions\/194863\/delete-files-older-than-x-days\/205539#205539\">find &#8211; Delete files older than X days + &#8211; Unix &amp; Linux Stack Exchange<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have found the command to delete files older than 5 days in a folderfind \/path\/to\/files* -mtime +5 -exec rm {} \\;But how do I also do this for subdirectories in that folder? Source: find &#8211; Delete files older than X days + &#8211; Unix &amp; Linux Stack Exchange<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-226267","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/226267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=226267"}],"version-history":[{"count":1,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/226267\/revisions"}],"predecessor-version":[{"id":226268,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/226267\/revisions\/226268"}],"wp:attachment":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=226267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=226267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=226267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}