Hauptinhalt

partrepo.collection.uninstall

Uninstall collection

Since R2026a

    Description

    partrepo.collection.uninstall(collectionID) uninstalls the specified collection. If you uninstall a collection, it becomes in the Block Parameterization Manager app.

    example

    Examples

    collapse all

    This example shows how to uninstall a part collection.

    Install Collection

    The MyResistors_1.0.0.mldatx file is a collection of parts for the Resistor block in the Simscape foundation library. Use the partrepo.collection.install function to install the collection.

    partrepo.collection.install("MyResistors_1.0.0.mldatx",Overwrite=true)
    Successfully installed part collection. Details:
    
       Collection ID: MyOrg.MyResistors 
       Version: 1.0.0 
       
       Data set IDs:
          MyManufacturer|R-0001|Resistor 1
          MyManufacturer|R-0002|Resistor 2
          MyManufacturer|R-0003|Resistor 3 
       
       Blocks with data sets from this collection:
          fl_lib/Electrical/Electrical Elements/Resistor
    

    To confirm that the collection is installed and to identify the resistor collection ID, use the partrepo.collection.list function.

    collectionTable = partrepo.collection.list
    collectionTable=1×6 table
                ID             Version    DateCreated     Author    Description    BuiltIn
        ___________________    _______    ____________    ______    ___________    _______
    
        "MyOrg.MyResistors"    "1.0.0"    "2025-03-13"      ""          ""          false 
    
    

    The collection ID for the resistors is MyOrg.MyResistors.

    Uninstall Collection

    To uninstall the collection, use the partrepo.collection.uninstall function and specify the resistor collection ID as the argument.

    partrepo.collection.uninstall("MyOrg.MyResistors")

    Check to confirm that the collection is uninstalled.

    NewCollectionTable = partrepo.collection.list
    NewCollectionTable =
    
      0×6 empty table
    
        ID    Version    DateCreated    Author    Description    BuiltIn
        __    _______    ___________    ______    ___________    _______
    

    Input Arguments

    collapse all

    Part collection ID, specified as a string scalar or character vector.

    Version History

    Introduced in R2026a