User Guide

280 Chapter 15: Server Behaviors
<delete>
Description
This tag is an optional advanced feature lets you control how to delete a participant. Without this
tag, the participant is deleted by removing it completely but only if no server behaviors refer to it.
By specifying a
<delete> tag, you can specify that it should never be deleted or that only portions
should be deleted.
Parent
implementation
Type
Ta g.
Required
No.
<delete> attributes
The following items are valid attributes of the delete tag.
deleteType
Description
This attribute is used to indicate the type of delete to perform. It has different meanings,
depending on whether the participant is a directive, a tag, or an attribute. By default, the entire
participant is deleted.
Parent
delete
Type
Attribute.
Required
No.
Values
all, none, tagOnly, innerOnly, attribute+attribName, attribute+*
The all value (default) deletes the entire directive or tag. For attributes, it deletes the
entire definition.
The none value is never automatically deleted.
The tagOnly value removes only the outer tag but leaves the contents of the innerHTML tag
intact. For attributes, it also removes the outer tag if it is a block tag. It is meaningless for
directives.
The innerOnly value, when applied to tags, removes only the contents (the innerHTML tag).
For attributes, it removes only the value. It is meaningless for directives.