Remove annotations from parts of audio—Wolfram Documentation

AnnotationDelete[{obj,itemspec}]

deletes all annotations of the items of obj specified by itemspec.

Details

  • Typically used to delete annotations for objects and specific items in an object.
  • AnnotationDelete[spec,key] returns the object specified in spec with the annotation key deleted.
  • For standard annotations, AnnotationDelete effectively resets the value to the annotation default value.
  • Possible objects with items that can be annotated:
  • Audiotime points and time intervals
    BoundaryMeshRegionmesh cells
    CSGRegiongeometric regions
    Graphvertices and edges
    MeshRegionmesh cells
  • Item specification itemspec for each type of object is given in its reference page.

Examples

open all close all

Basic Examples  (3)

Remove a vertex or edge annotation:

Remove a style or label annotation:

Annotate an Audio object:

Remove the annotation with a specific tag:

Scope  (11)

Graph & Networks  (7)

Graph annotations  (5)

Remove one annotation from vertices:

And from edges:

Remove all annotations from vertices:

And from edges:

Remove several annotations from vertices:

And from edges:

AnnotationDelete works with undirected graphs:

Directed graphs:

Weighted graphs:

Vertex annotations  (1)

Edge annotations  (1)

Regions  (4)

Remove one annotation from a child region:

Remove all annotations from a child region:

Remove an annotation from all child regions:

Remove all annotations from a CSGRegion object:

Applications  (2)

Linda wants to be anonymous in the presentation of the family gathering. Hide her vertex label:

Use Fold to apply AnnotationDelete repeatedly:

See all the partial results:

Properties & Relations  (6)

Use Annotation as a wrapper to specify annotations in functions such as Graph:

Use AnnotationValue to extract values:

For undefined annotations, the value $Failed is returned:

Use AnnotationValue to set annotations in a graph:

The original graph has changed:

Use AnnotationValue to unset annotations in a graph:

The original graph has changed:

Use AnnotationKeys to test for the presence of a annotation:

Generate a list of vertex label rules:

Use Annotate to set a annotation without changing the original:

The original graph is unchanged:

Possible Issues  (1)

Wolfram Research (2019), AnnotationDelete, Wolfram Language function, https://reference.wolfram.com/language/ref/AnnotationDelete.html (updated 2025).

Text

Wolfram Research (2019), AnnotationDelete, Wolfram Language function, https://reference.wolfram.com/language/ref/AnnotationDelete.html (updated 2025).

CMS

Wolfram Language. 2019. "AnnotationDelete." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/AnnotationDelete.html.

APA

Wolfram Language. (2019). AnnotationDelete. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AnnotationDelete.html

BibTeX

@misc{reference.wolfram_2025_annotationdelete, author="Wolfram Research", title="{AnnotationDelete}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/AnnotationDelete.html}", note=[Accessed: 23-February-2026]}

BibLaTeX

@online{reference.wolfram_2025_annotationdelete, organization={Wolfram Research}, title={AnnotationDelete}, year={2025}, url={https://reference.wolfram.com/language/ref/AnnotationDelete.html}, note=[Accessed: 23-February-2026]}