WSMLink`
WSMLink`

WSMDeleteModel

WSMDeleteModel is being phased out in favor of DeleteObject.

WSMDeleteModel["mmodel"]

deletes the model mmodel.

WSMDeleteModel[{"mmodel1","mmodel2",}]

deletes multiple models mmodeli.

Details and Options

  • The mmodel refers to the fully qualified Modelica names.
  • Names can be given as strings or as DotName.
  • WSMDeleteModel returns Null if it succeeds and $Failed if it fails.
  • The shortest unique model name mmodel can be used where WSMNames["*.mmodel"] gives a unique match.

Examples

Basic Examples  (3)

Load Wolfram System Modeler Link:

Copy a model from the DocumentationExamples library to a new place:

The model was created:

Delete the new model:

The model was deleted:

Copy a package to a new place:

Retrieve the names inside the package:

Delete all the models inside the package:

All the models inside the package are gone: