<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[deleting old crap]]></title><description><![CDATA[<p dir="auto">Heyas, I just ran a cleanup and was amazed that of my nearly 10GB it just deleted 60 MB(!) of cached files and 800 KB of preview cards. How can I get rid of all the crap lets say... order than 2 months? can't be all 5GB in the database, right?</p>
]]></description><link>https://forum.cloudron.io/topic/8646/deleting-old-crap</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 18:51:12 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/8646.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Feb 2023 09:13:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to deleting old crap on Sat, 11 Feb 2023 15:53:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/razielkanos" aria-label="Profile: RazielKanos">@<bdi>RazielKanos</bdi></a> said in <a href="/post/61790">deleting old crap</a>:</p>
<blockquote>
<p dir="auto">Heyas, I just ran a cleanup and was amazed that of my nearly 10GB it just deleted 60 MB(!) of cached files and 800 KB of preview cards. How can I get rid of all the crap lets say... order than 2 months? can't be all 5GB in the database, right?</p>
</blockquote>
<p dir="auto">tootctl media remove and tootctl statuses remove are run in the background with Mastodon v4 (settings can be found on the administration page).</p>
<p dir="auto">What I am running every night (via cron job) is:<br />
/app/code/bin/tootctl media remove-orphans<br />
/app/code/bin/tootctl preview-cards remove --days=7<br />
/app/code/bin/tootctl cache clear<br />
/app/code/bin/tootctl accounts prune<br />
and now with v4.1:<br />
/app/code/bin/tootctl media remove --prune-profiles --days 7</p>
<p dir="auto">My instance has around 40-50 users and is connected to 8 public relays.<br />
It is about 50 GB in size now (it was 80-90 GB with v4.0).<br />
Hope that helps.</p>
]]></description><link>https://forum.cloudron.io/post/61876</link><guid isPermaLink="true">https://forum.cloudron.io/post/61876</guid><dc:creator><![CDATA[nichu42]]></dc:creator><pubDate>Sat, 11 Feb 2023 15:53:11 GMT</pubDate></item><item><title><![CDATA[Reply to deleting old crap on Sat, 11 Feb 2023 10:04:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/razielkanos" aria-label="Profile: RazielKanos">@<bdi>RazielKanos</bdi></a> I just spotted this in another thread, possibly of use/ interest?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alwynispat" aria-label="Profile: alwynispat">@<bdi>alwynispat</bdi></a> said in <a href="/post/61835">Mastodon 4.1.0 Released!</a>:</p>
<blockquote>
<p dir="auto">I also recommend that the <a href="http://cleanup.sh" target="_blank" rel="noopener noreferrer nofollow ugc">cleanup.sh</a> to add the <code>tootctl media remove --prune-profiles</code></p>
</blockquote>
]]></description><link>https://forum.cloudron.io/post/61856</link><guid isPermaLink="true">https://forum.cloudron.io/post/61856</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Sat, 11 Feb 2023 10:04:09 GMT</pubDate></item><item><title><![CDATA[Reply to deleting old crap on Sat, 11 Feb 2023 09:03:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/razielkanos" aria-label="Profile: RazielKanos">@<bdi>RazielKanos</bdi></a> You can attempt to run this, note it may need modification:</p>
<p dir="auto"><a href="https://gist.github.com/ThomasLeister/aa1c500eedeff19551f3bb8238533854" target="_blank" rel="noopener noreferrer nofollow ugc">https://gist.github.com/ThomasLeister/aa1c500eedeff19551f3bb8238533854</a></p>
]]></description><link>https://forum.cloudron.io/post/61852</link><guid isPermaLink="true">https://forum.cloudron.io/post/61852</guid><dc:creator><![CDATA[murgero]]></dc:creator><pubDate>Sat, 11 Feb 2023 09:03:04 GMT</pubDate></item><item><title><![CDATA[Reply to deleting old crap on Sat, 11 Feb 2023 08:37:06 GMT]]></title><description><![CDATA[<p dir="auto">well, that would be only a temporary solution. I want to start soon a public Mastodon Node and have been running my own to get to know the service, what I can do and what I can't do. I have to say it's very limited from an admin point of view</p>
]]></description><link>https://forum.cloudron.io/post/61850</link><guid isPermaLink="true">https://forum.cloudron.io/post/61850</guid><dc:creator><![CDATA[RazielKanos]]></dc:creator><pubDate>Sat, 11 Feb 2023 08:37:06 GMT</pubDate></item><item><title><![CDATA[Reply to deleting old crap on Fri, 10 Feb 2023 20:30:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/razielkanos" aria-label="Profile: RazielKanos">@<bdi>RazielKanos</bdi></a> where are you storing the media?</p>
<p dir="auto">I store in Scaleway S3 object storage where you can create rules to move stuff into cheaper (free for first 75GB) slower storage eg after 2 months (or anything else you decide)</p>
]]></description><link>https://forum.cloudron.io/post/61819</link><guid isPermaLink="true">https://forum.cloudron.io/post/61819</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Fri, 10 Feb 2023 20:30:32 GMT</pubDate></item></channel></rss>