Main Content

deleteTarget

Delete a target

Description

example

deleteTarget(target) deletes the target represented by the Target object, H.

The function deletes the framework of a target. The framework is a set of folders and files that implements a target. This function also removes the framework folders from the MATLAB® path.

Examples

collapse all

Create an ARM Cortex-M target.

target = createTarget('My Target','ARM Cortex-M','c:/mytarget');

Save your target. This function updates the target framework and adds the necessary target folders to the MATLAB path.

saveTarget(target);
Creating folders for the target 'My Target' in the folder 'c:/mytarget'...
Creating the framework for the target 'My Target'...
Registering the target 'My Target'...
Warning: Undefined function 'simscape.internal.configSetRenderer' for input arguments of type 'function_handle'.
Warning: Unrecognized function or variable 'simmechanics.sli.internal.register_datatypes'.
Warning: Unrecognized function or variable 'customizationXpcCrlRegistration'.
Done.
Warning: Undefined function 'simscape.internal.configSetRenderer' for input arguments of type 'function_handle'.
Warning: Unrecognized function or variable 'simmechanics.sli.internal.register_datatypes'.
Warning: Unrecognized function or variable 'customizationXpcCrlRegistration'.

Delete the target. This function removes framework and folders on the MATLAB path.

deleteTarget(target);
Warning: Undefined function 'simscape.internal.configSetRenderer' for input arguments of type 'function_handle'.
Warning: Unrecognized function or variable 'simmechanics.sli.internal.register_datatypes'.
Warning: Unrecognized function or variable 'customizationXpcCrlRegistration'.

Input Arguments

collapse all

Handle to Target object.

Version History

Introduced in R2015a