def delete(self):
<EOL>parent = self.parent<EOL>if parent.expr._supports_contents():<EOL><INDENT>parent.remove(self)<EOL>return<EOL><DEDENT>for arg in parent.args:<EOL><INDENT>if self.expr in arg.contents:<EOL><INDENT>arg.contents.remove(self.expr)<EOL><DEDENT><DEDENT>
r"""Delete this node from the parse tree.

        Where applicable, this will remove all descendants of this node from
        the parse tree.

        >>> from TexSoup import TexSoup
        >>> soup = TexSoup(r'''\textit{\color{blue}{Silly}}\textit{keep me!}''')
        >>> soup.textit.color.delete()
        >>> soup
        \textit{}\textit{keep me!}
        >>> soup.textit.delete()
        >>> soup
        \textit{keep me!}