<?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[How to delete app at a scheduled time on a certain date?]]></title><description><![CDATA[<p dir="auto">Quick question: Is there a way to delete an app at a scheduled time on a certain date in the future?</p>
<p dir="auto">For example, I have one app I want to go away on December 31, 2021 this year. While I know I can just do this manually, I thought since it's far into the future maybe I can come up with a geeky way to schedule this task in advance.</p>
<p dir="auto">I suppose the best way is using the Cloudron API, right? So I guess it'd be best if I installed the Cloudron API on the server itself (since I won't necessarily have anything running all the time at home here) / CLI, and just set that command in a script and let it run once in cron at the specified time? Any alternatives? Am I overcomplicating this? <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":-D" alt="😄" /></p>
]]></description><link>https://forum.cloudron.io/topic/6064/how-to-delete-app-at-a-scheduled-time-on-a-certain-date</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 06:02:56 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6064.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Nov 2021 00:40:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to delete app at a scheduled time on a certain date? on Mon, 29 Nov 2021 19:28:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d19dotca" aria-label="Profile: d19dotca">@<bdi>d19dotca</bdi></a> yes, UTC</p>
]]></description><link>https://forum.cloudron.io/post/39922</link><guid isPermaLink="true">https://forum.cloudron.io/post/39922</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 29 Nov 2021 19:28:38 GMT</pubDate></item><item><title><![CDATA[Reply to How to delete app at a scheduled time on a certain date? on Mon, 29 Nov 2021 18:48:27 GMT]]></title><description><![CDATA[<p dir="auto">Just to be clear, I suppose the cron time needs to be in UTC? Or does it respect the local time zone instead taken from Cloudron settings?</p>
]]></description><link>https://forum.cloudron.io/post/39919</link><guid isPermaLink="true">https://forum.cloudron.io/post/39919</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Mon, 29 Nov 2021 18:48:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to delete app at a scheduled time on a certain date? on Thu, 25 Nov 2021 23:58:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> said in <a href="/post/39766">How to delete app at a scheduled time on a certain date?</a>:</p>
<blockquote>
<p dir="auto">curl -X POST <a href="https://my.example.com/api/v1/apps/appid/uninstall?access_token=apitoken" target="_blank" rel="noopener noreferrer nofollow ugc">https://my.example.com/api/v1/apps/appid/uninstall?access_token=apitoken</a></p>
</blockquote>
<p dir="auto">Just wanted to say that I ran the above command as a test in a new app for this purpose and it worked like a charm! Thank you so much for that geeky yet easy solution. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/39814</link><guid isPermaLink="true">https://forum.cloudron.io/post/39814</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Thu, 25 Nov 2021 23:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to How to delete app at a scheduled time on a certain date? on Thu, 25 Nov 2021 23:22:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/infogulch" aria-label="Profile: infogulch">@<bdi>infogulch</bdi></a> I mentioned them in the User and the Admin role subsections now.</p>
<p dir="auto">Not too sure about new environment variables. It does make sense to add them if there were broad use cases (like other addons), so maybe if more use cases come up, we can add this.</p>
<p dir="auto">I like the idea of having some scope for tokens. Restricting them to just specific apps(s) would make things more secure.</p>
]]></description><link>https://forum.cloudron.io/post/39813</link><guid isPermaLink="true">https://forum.cloudron.io/post/39813</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 25 Nov 2021 23:22:56 GMT</pubDate></item><item><title><![CDATA[Reply to How to delete app at a scheduled time on a certain date? on Thu, 25 Nov 2021 16:41:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Actually, with a couple improvements, CRON+API could be a wonderfully generalizable app management automation tool.</p>
<p dir="auto">Three feature requests:</p>
<ul>
<li><a href="https://docs.cloudron.io/user-management/#roles" target="_blank" rel="noopener noreferrer nofollow ugc">Cloudron doc page on roles</a> should mention the <a href="https://forum.cloudron.io/topic/5981/cloudron-7-0-released/1?_=1637857313463">new App Operator role</a> and describe its permissions</li>
<li>Add a new environment variable inside each app container, <code>CLOUDRON_APP_ID</code>, which contains the id of the currently running app. This should apply to CRON as well
<ul>
<li>Note: <a href="https://docs.cloudron.io/packaging/cheat-sheet/#environment-variables" target="_blank" rel="noopener noreferrer nofollow ugc">CLOUDRON_API_ORIGIN is already supported</a></li>
</ul>
</li>
<li>Add a new CRON-only environment variable <code>CLOUDRON_APP_OPERATOR_TOKEN</code> which is a temporary "App Operator"-role token that is only valid for the current app and for the duration of the cron run.
<ul>
<li>Depending on how the CRON feature is implemented (is this the cron from inside the container or on the host?) this may not work exactly how I'm thinking.</li>
</ul>
</li>
</ul>
<p dir="auto">With these features, this idea could be implemented much more generally:</p>
<pre><code># From this: (user must customize api domain, app id, and token)
curl -X POST https://my.example.com/api/v1/apps/appid/uninstall?access_token=apitoken
# To this: (this is ready to copy/paste for any app in any cloudron, but it stops instead of uninstalls)
curl -X POST $CLOUDRON_API_ORIGIN/api/v1/apps/$CLOUDRON_APP_ID/stop?access_token=$CLOUDRON_APP_OPERATOR_TOKEN
</code></pre>
<p dir="auto">Thoughts?</p>
]]></description><link>https://forum.cloudron.io/post/39781</link><guid isPermaLink="true">https://forum.cloudron.io/post/39781</guid><dc:creator><![CDATA[infogulch]]></dc:creator><pubDate>Thu, 25 Nov 2021 16:41:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to delete app at a scheduled time on a certain date? on Thu, 25 Nov 2021 16:16:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> oh that’s a lot easier than I thought! Perfect - I’ll try that. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /> Thank you so much.</p>
]]></description><link>https://forum.cloudron.io/post/39780</link><guid isPermaLink="true">https://forum.cloudron.io/post/39780</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Thu, 25 Nov 2021 16:16:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to delete app at a scheduled time on a certain date? on Thu, 25 Nov 2021 06:00:28 GMT]]></title><description><![CDATA[<p dir="auto">If this is some WordPress app or equivalent, maybe there is some plugin which puts WP in maintenance mode at a particular time.</p>
<p dir="auto">But I like <a class="plugin-mentions-user plugin-mentions-a" href="/user/infogulch" aria-label="Profile: infogulch">@<bdi>infogulch</bdi></a>'s idea. Put a cron job inside the app to kill itsef <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /> To uninstall an app it's a simple curl request:</p>
<pre><code>curl -X POST https://my.example.com/api/v1/apps/appid/uninstall?access_token=apitoken
</code></pre>
]]></description><link>https://forum.cloudron.io/post/39766</link><guid isPermaLink="true">https://forum.cloudron.io/post/39766</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 25 Nov 2021 06:00:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to delete app at a scheduled time on a certain date? on Thu, 25 Nov 2021 20:33:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d19dotca" aria-label="Profile: d19dotca">@<bdi>d19dotca</bdi></a> Yah, you can use N8N to orchestrate it via the cron module and HTTP API call all in their GUI.</p>
<p dir="auto">Then share the workflow for others as well.</p>
]]></description><link>https://forum.cloudron.io/post/39756</link><guid isPermaLink="true">https://forum.cloudron.io/post/39756</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Thu, 25 Nov 2021 20:33:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to delete app at a scheduled time on a certain date? on Thu, 25 Nov 2021 01:00:55 GMT]]></title><description><![CDATA[<p dir="auto">Maybe you could disable the app from the inside with a cron job and then clean it up later at your leisure? I'm not exactly sure <em>how</em> you would stop or otherwise disable the app from within without triggering a restart, but maybe there's something in there.</p>
<p dir="auto"><a href="https://docs.cloudron.io/apps/#cron" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/apps/#cron</a></p>
]]></description><link>https://forum.cloudron.io/post/39755</link><guid isPermaLink="true">https://forum.cloudron.io/post/39755</guid><dc:creator><![CDATA[infogulch]]></dc:creator><pubDate>Thu, 25 Nov 2021 01:00:55 GMT</pubDate></item></channel></rss>