<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Opencode on Junian Dev</title><link>https://www.junian.dev/tags/opencode/</link><description>Recent content in Opencode on Junian Dev</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><managingEditor>author@junian.dev (Junian Triajianto)</managingEditor><webMaster>author@junian.dev (Junian Triajianto)</webMaster><copyright>Copyright &amp;copy; 2014 - 2026 &lt;a href='https://www.junian.dev/'&gt;Junian.dev&lt;/a&gt;</copyright><lastBuildDate>Wed, 26 Aug 2026 06:30:00 +0700</lastBuildDate><atom:link href="https://www.junian.dev/tags/opencode/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Delete All OpenCode Sessions</title><link>https://www.junian.dev/blog/opencode-delete-all-sessions/</link><pubDate>Wed, 26 Aug 2026 06:30:00 +0700</pubDate><author>author@junian.dev (Junian Triajianto)</author><guid>https://www.junian.dev/blog/opencode-delete-all-sessions/</guid><description>&lt;p&gt;I&amp;rsquo;ve been using OpenCode a lot lately.
One thing I didn&amp;rsquo;t notice was that every time I start &lt;code&gt;opencode&lt;/code&gt;, even in the same directory, it always starts a new session.
Over time, there are a lot of saved sessions.&lt;/p&gt;
&lt;p&gt;I checked using the &lt;code&gt;opencode session list&lt;/code&gt; command and it has a bunch of sessions like this:&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;button class="btn-clipboard chroma" title="Copy to clipboard"&gt;&lt;i class="fa icon-clipboard"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="feather feather-copy"&gt;&lt;rect x="9" y="9" width="13" height="13" rx="2" ry="2"/&gt;&lt;path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/&gt;&lt;/svg&gt;&lt;/i&gt;&lt;span class="msg-clipboard"&gt;&lt;/span&gt;&lt;/button&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ opencode session list
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Session ID Title Updated
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;───────────────────────────────────────────────────────────────────────────────
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ses_01a79c031ffeoTF781ma9DAYiR New session - 2026-08-09T07:56:48.462Z 10:14 PM · 8/9/2026
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ses_02142df4bffeJZJCNI2flGgZiw New session - 2026-08-08T00:19:24.468Z 7:07 AM · 8/9/2026
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ses_03051a679ffe7LNdjOeQQs8hC8 New session - 2026-08-05T02:08:57.735Z 9:10 AM · 8/5/2026
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ses_03fb4423effeJSOWB6yROH3mzp New session - 2026-08-02T02:26:57.089Z 9:35 AM · 8/2/2026
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ses_25fdf08f1ffetxmcBDVYGfI1Me Code functionality review 5:33 PM · 4/18/2026
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ses_260544176ffe1iW1RyEcxgz102 Codebase review 3:20 PM · 4/18/2026&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;&lt;p&gt;One beautiful day, I wanted to start a project with a fresh, clean slate; no existing session should be available.
So what I had to do was to delete all sessions.&lt;/p&gt;</description></item></channel></rss>