removeGroup - Remove settings group - MATLAB (original) (raw)
Main Content
Syntax
Description
removeGroup([parentgroup](#mw%5F67e4735e-8dcc-490d-b972-a51ddf376f08),[name](#mw%5Fa9825a7d-7db9-46c1-bb95-f61a5af9bfdd))
removes a settings group called name
from the specified parent settings group. If name
contains settings or settings groups,removeGroup
removes them as well.
Examples
Use the settings
function to access the root of the settings tree and then create the settings group mysettings
.
s = settings; newGroup = addGroup(s,"mysettings"); s
s = SettingsGroup with properties:
mysettings: [1×1 SettingsGroup]
mytest: [1×1 SettingsGroup]
matlab: [1×1 SettingsGroup]
Use removeGroup
to remove mysettings
.
removeGroup(s,"mysettings"); s
s = SettingsGroup with properties:
mytest: [1×1 SettingsGroup]
matlab: [1×1 SettingsGroup]
Input Arguments
Parent settings group to remove the group from, specified as aSettingsGroup
object. Use the settings function to access the root settings group object and all the available settings groups.
Name of the settings group to remove, specified as a character vector or string scalar. If a group called name
does not exist in the specified settings group, MATLAB® throws an error.
Version History
Introduced in R2019b