<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									QNAP - Delete files of certain type recursively from command line - QNAP NAS				            </title>
            <link>https://www.tweaking4all.com/forum/qnap-nas/qnap-delete-files-of-certain-type-recursively-from-command-line/</link>
            <description>Tweaking4All.com Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 12 Sep 2026 20:04:57 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>QNAP - Delete files of certain type recursively from command line</title>
                        <link>https://www.tweaking4all.com/forum/qnap-nas/qnap-delete-files-of-certain-type-recursively-from-command-line/#post-3760</link>
                        <pubDate>Tue, 28 Sep 2021 10:19:12 +0000</pubDate>
                        <description><![CDATA[I just had to cleanup a lot of files, and wanted to use the Linux &quot;find&quot; command for that.As an example, to remove all JPG files from all directories in a given directory. Under Linux that c...]]></description>
                        <content:encoded><![CDATA[<p>I just had to cleanup a lot of files, and wanted to use the Linux "find" command for that.<br />As an example, to remove all JPG files from all directories in a given directory. Under Linux that could be done as such:</p>
<pre contenteditable="false">find . -name "*.jpg" -type f -delete</pre>
<p>This will find all files ending with .jpg and delete them.<br />If you'd want to do a test run first without deleting the files, you could try the following to show you the full list:</p>
<pre contenteditable="false">find . -name "*.pt.srt" -type f</pre>
<p>However .... your beloved QNAP uses the BusyBox find version, which does NOT support this "delete" option.</p>
<p>The proper version is supposed to come with OptWare, but on my QNAP it was nowhere to be found (look in "/opt/bin" to see if "find" and "findutils-find" can be found).</p>
<p>In case yours (like mine) is missing that one, do the following to install the correct find version:</p>
<pre contenteditable="false">ipkg update<br />ipkg install findutils</pre>
<p>In the directory "/opt/bin" you'll now find the following new files:</p>
<pre contenteditable="false">/opt/bin/find<br />/opt/bin/findutils-find<br />/opt/bin/findutils-xargs</pre>
<p>To use this version of find, the statement changes a little bit:</p>
<pre contenteditable="false">/opt/bin/find . -name "*.jpg" -type f -delete</pre>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/qnap-nas/">QNAP NAS</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/qnap-nas/qnap-delete-files-of-certain-type-recursively-from-command-line/#post-3760</guid>
                    </item>
							        </channel>
        </rss>
		