Configuration modifications made by using svccfg commands or libscf calls modify only the admin layer of the service configuration repository. See Repository Layers for information about layers. When you delete configuration that is only defined in the admin layer and does not exist in any other layer, that configuration is gone. Commands that display configuration no longer show the deleted configuration, even when you use the -l option to show all layers of the service configuration repository. See Deleting Non-Administrative Configuration for information about deleting configuration that exists in other layers.
Example 4-9 Deleting All Values of a PropertyUse the setprop subcommand as described in Setting Property Values. To delete all values of a property, do not specify any type or value. The values are deleted, but the property still exists.
$ svccfg -s my-svc:default setprop config/vendor = $ svccfg -s my-svc:default listprop config/vendor config/vendor astringExample 4-10 Deleting All Matching Values of a Property
Use the delpropvalue subcommand to delete all values of the named property that match the given pattern.
$ svccfg -s my-svc:default setprop config/tool = astring: '(hammer tongs wrench)' $ svccfg -s my-svc:default listprop config config application config/customer astring acustomer config/vendor astring "vendora" "vendorb" config/tool astring "hammer tongs wrench" $ svccfg -s my-svc:default delpropvalue config/vendor '*b' $ svccfg -s my-svc:default delpropvalue config/tool 'tong*' $ svccfg -s my-svc:default listprop config config application config/customer astring acustomer config/vendor astring vendora config/tool astring "hammer tongs wrench" $ # config/tool is a single value that is a value set $ svccfg -s my-svc:default delpropvalue config/tool '*tong*' $ svccfg -s my-svc:default listprop config config application config/customer astring acustomer config/vendor astring vendora config/tool astringExample 4-11 Deleting a Property
Use the delprop subcommand to delete the named property of the selected service or service instance.
$ svccfg -s my-svc:default delprop config/tool $ svccfg -s my-svc:default listprop config config application config/customer astring acustomer config/vendor astring vendoraExample 4-12 Deleting a Property Group
The delpg and delprop subcommands both can delete a property group. The delpg subcommand deletes the named property group of the selected service or service instance. The delprop subcommand deletes the named property group if no property is named.
$ svccfg -s my-svc:default delpg config $ svccfg -s my-svc:default listprop config $Example 4-13 Deleting Customizations
The delcust subcommand deletes administrative customizations on the selected service or service instance. Before you use the delcust subcommand, use the listcust subcommand with the same pattern or option to see what will be deleted. If a pattern is given, the pattern must match a property or property group.
$ svccfg -s my-svc:default listcust config application admin config/customer astring admin acustomer config/vendor astring admin "vendora" "vendorb" config/tool astring admin "hammer tongs wrench" $ svccfg -s my-svc:default listcust '*tool' config/tool astring admin "hammer tongs wrench" $ svccfg -s my-svc:default delcust '*tool' Deleting customizations for property: config/tool $ svccfg -s my-svc:default listcust '*tool' $ svccfg -s my-svc:default listcust config application admin config/customer astring admin acustomer config/vendor astring admin "vendora" "vendorb"