<doc>
  <legacy_id>1944</legacy_id>
  <name>deleteGroup</name>
  <type>message</type>
  <syntax>
    <example>deleteGroup</example>
  </syntax>
  <library></library>
  <objects>
    <group/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Objects &amp; Messages</category>
  </classification>
  <references>
    <command tag="delete">delete Command</command>
    <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>Sent to a <command tag="group">group</command> just before it is removed from the <object tag="stack">stack</object>.</summary>
  <examples>
    <example>on deleteGroup <code><i>-- remove the group being deleted from a list</i></code></p><p>  get lineOffset(the short name of the target,field "Groups List")</p><p>  delete line it of field "Groups List"</p><p>  pass deleteGroup</p><p>end deleteGroup</example>
  </examples>
  <description>
    <p>Handle the <b>deleteGroup</b> message if you want to perform cleanup before a <command tag="group">group</command> is removed from the <object tag="stack">stack</object>.</p><p/><p><b>Comments:</b></p><p>The actual deletion is not triggered by the <b>deleteGroup</b> <keyword tag="message box">message</keyword>, so <glossary tag="trap">trapping</glossary> the <keyword tag="message box">message</keyword> and not allowing it to <control_st tag="pass">pass</control_st> does not prevent the <command tag="group">group</command> from being removed.</p><p/><p>Deleting the last card on which a group appears does not remove the group from the stack, so it does not cause a <b>deleteGroup</b> <keyword tag="message box">message</keyword> to be sent.</p><p/><p>Ungrouping a group does not cause a <b>deleteGroup</b> <keyword tag="message box">message</keyword> to be sent.</p><p/><p>A <b>deleteBackground</b> <keyword tag="message box">message</keyword> is sent after the <b>deleteGroup</b> <keyword tag="message box">message</keyword>.</p>
  </description>
</doc>