target.remove
Remove target object from internal database
Syntax
Description
target.remove(
removes the target
object from an internal database.targetObject
)
target.remove(
removes the target object specified by class and identifier.targetType
, targetObjectId
)
target.remove(
uses name-value arguments to remove associated objects and suppress command-line
output.targetObject
, Name,Value
)
Examples
Remove Target Object From Internal Database
You can specify and add a hardware device implementation to an internal database.
armv8 = target.create('LanguageImplementation', ... 'Name', 'Armv8-A LP64', ... 'Copy', 'ARM Compatible-ARM Cortex'); a53 = target.create('Processor', ... 'Name', 'Cortex-A53', ... 'Manufacturer', 'ARM Compatible'); a53.LanguageImplementations = armv8; target.add(a53)
When a target object is no longer required, you can use the function to remove the object from the internal database.
To remove only the target.Processor
object,
run:
target.remove(a53)
Or:
target.remove('Processor', 'ARM Compatible-Cortex-A53');
To remove the target.Procesor
object and its associated
target.LanguageImplementation
object and suppress the command-line
output, run:
target.remove(a53, ... 'IncludeAssociations', true, ... 'SuppressOutput',true);
Input Arguments
targetObject
— Target object
object
Specify the target object that you want to remove.
targetType
— Target type
character vector | string
Specify the class of the target object that you want to remove. For example:
If the class is
target.Processor
, specify'Processor'
.If the class is
target.LanguageImplementation
, specify'LanguageImplementation'
.
Example: 'Processor'
targetObjectId
— Target object identifier
character vector | string
Specify the unique identifier of the object that you want to remove, that is, the
Id
property value of the object.
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
Example: target.remove(
myTargetObject
,
'IncludeAssociations', true);
IncludeAssociations
— Remove associated objects
false (default) | true
Remove associated objects from internal database:
true
–– Function removestargetObject
and associated target objects from the internal database. If an associated object is referenced by another target object, the function does not remove the associated object. IftargetObject
is not saved in the internal database, the function does not remove associated target objects from the internal database.false
–– Function removes onlytargetObject
from the internal database.
Example: target.remove(
myTargetObject
,
'IncludeAssociations', true);
Data Types: logical
SuppressOutput
— Control command-line output
false (default) | true
Control command-line output of function:
true
–– Suppress command-line output from the function.false
–– Provide information about the objects that the function removes from the internal database.
Example: target.remove(
myTargetObject
,
'SuppressOutput', true);
Data Types: logical
Version History
Introduced in R2019a
See Also
target.add
| target.clear
| target.create
| target.get
| target.update
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)