<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Clean delete of application from device</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8169133c90/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8169133c90/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/8169133c90/</id><updated>2020-02-27T14:07:15.854000Z</updated><subtitle>Recent posts to Clean delete of application from device</subtitle><entry><title>Clean delete of application from device</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8169133c90/?limit=25#694a" rel="alternate"/><published>2020-02-27T14:07:15.854000Z</published><updated>2020-02-27T14:07:15.854000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com4e9138b15d9239f61c7130abb35afdf69aaf1bff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I think reset_origin() should do the trick.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;device&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;primary&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;"Device"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;onlineDevice&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;online&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;create_online_device&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;device&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;onlineDevice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reset_origin&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Regards,&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Clean delete of application from device</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8169133c90/?limit=25#39ed" rel="alternate"/><published>2020-02-27T14:07:14.812000Z</published><updated>2020-02-27T14:07:14.812000Z</updated><author><name>williamc</name><uri>https://forge.codesys.com/u/williamc/</uri></author><id>https://forge.codesys.com91a9ac7f3b5a7e34cf4e14141ea39d02f2d983ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I have been tasked to write some script that will ensure when our device ships to customer it is in a clean state (factory default).&lt;/p&gt;
&lt;p&gt;We will load an application on during an automated test and I can't see if there is a command or a method through scripting to delete the application.&lt;/p&gt;
&lt;p&gt;Is there one...or can I just create a blank project for my device and load that? Does that wipe over all files or could there still be files existing from the previous application?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>