Main Content

matlab.task.removeMetadata

Remove Live Editor task metadata

Since R2022a

    Description

    example

    matlab.task.removeMetadata(classfile) removes the metadata for the Live Editor task specified by classfile. This metadata removal then removes the task from the Live Editor task gallery and from automatic code suggestions and completions.

    Calling this function has an effect only if the task was previously configured using the matlab.task.configureMetadata function.

    Examples

    collapse all

    Suppose you created the Normalize Vector Data Live Editor task by defining the subclass NormalizeVectorData.m in the folder C:\MyTasks, and configured the task using the matlab.task.configureMetadata function. Remove the Live Editor task metadata.

    matlab.task.removeMetadata('C:\MyTasks\NormalizeVectorData.m')

    This function call removes the metadata associated with the NormalizeVectorData class from the liveTasks.json file in the resources folder that was created when you configured the task. It also removes the Normalize Vector Data task from the Live Editor task gallery and from automatic code suggestions and completions.

    Input Arguments

    collapse all

    Path to the Live Editor task class file, specified as a string scalar or character vector. classfile can be an absolute or relative path.

    Example: "C:\MyTasks\NormalizeVectorData.m"

    Example: "DisplayImage.m"

    Version History

    Introduced in R2022a