<doc>
  <legacy_id>2393</legacy_id>
  <name>delete stack</name>
  <type>command</type>
  <syntax>
    <example>delete <i>stack</i></example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
    <synonym>clear stack</synonym>
  </synonyms>
  <classification>
    <category>Objects &amp; Messages</category>
  </classification>
  <references>
    <command tag="delete">delete Command</command>
    <message tag="deleteStack">deleteStack Message</message>
    <property tag="cantDelete">cantDelete Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Removes a <glossary tag="substack">substack</glossary> from a <glossary tag="stack file">stack file</glossary>, or removes a <glossary tag="main stack">main stack</glossary> from memory.</summary>
  <examples>
    <example>delete stack "Expressions"</example>
  </examples>
  <description>
    <p>Use the <b>delete stack</b> <glossary tag="command">command</glossary> to delete a <glossary tag="substack">substack</glossary>, or to purge a <glossary tag="main stack">main stack</glossary> from memory.</p><p/><p><b>Parameters:</b></p><p>The <i>stack</i> is any valid <href tag="reference/object_reference.rev">stack reference</href>.</p><p/><p><b>Comments:</b></p><p>The <b>delete stack</b> <glossary tag="command">command</glossary> has different effects, depending on whether the <i>stack</i> is a <glossary tag="main stack">main stack</glossary> or a <glossary tag="substack">substack</glossary>.</p><p/><p>If the <i>stack</i> is a <glossary tag="main stack">main stack</glossary>, the <b>delete stack</b> <glossary tag="command">command</glossary> removes the <object tag="stack">stack</object> from memory. (Any unsaved changes are lost.) However, it does not remove it from the user's system. To delete a <glossary tag="main stack">main stack</glossary>, use the <command tag="delete file">delete file</command> <glossary tag="command">command</glossary> instead.</p><p/><p><code/><img src="202650"/> <b>Caution!</b><code/> If the <i>stack</i> is a <glossary tag="substack">substack</glossary>, the <b>delete stack</b> <glossary tag="command">command</glossary> deletes the <object tag="stack">stack</object> from memory, which causes it to be deleted permanently the next time its <glossary tag="stack file">stack file</glossary> is saved.</p>
  </description>
</doc>