CLI 参考 > 服务器管理命令 > si deletepolicysection
  
si deletepolicysection
deletes a project policy section
Synopsis
si deletepolicysection [--[no]confirm] [--hostname=server] [--port=number] [--password=password] [--user=name] [(-?|--usage)] [(-F file|--selectionFile=file)] [(-N|--no)] [(-Y|--yes)] [--[no]batch] [--cwd=directory] [--forceConfirm=[yes|no]] [(-g|--gui)] [--quiet] [--settingsUI=[gui|default]] [--status=[none|gui|default]] policy section name...
Description
If you created a project policy section that you no longer need, you can delete it using the si deletepolicysection command.
* 
The ViewPolicy and EditPolicy permissions are required.
Deleted project policies cannot be restored, you can only recreate them.
While you can always delete a created project policy section, you cannot delete the default global policies section. Global policies can only be edited, viewed, or copied.
Options
This command takes the universal options available to all si commands, as well as some general options. See the options reference page for descriptions.
--[no]confirm
specifies whether or not to confirm the deletion of the policy section. If you do not specify this option, a confirmation message displays by default.
policy section name...
specifies the policy section to delete, where policy section name is of the form project,devpath. For example:
:global for a global policy.
project for a project, for example, /demo/project.pj.
project;development path for a development path on a project, for example, /demo/project.pj;Variant1.
development path for all projects that are configured on the development path at the top level, for example, ;Variant1.
* 
You may need to escape the ; in your command line environment, for example, enclose it in "" or escape the individual character with a /.
Diagnostics
See the diagnostics reference page for possible exit status values.
Preferences
Using si setprefs or si viewprefs, you are able to set or view the preference keys for this command.
See Also
Commands: si copypolicysection, si setpolicysectionsi viewpolicysection, si viewpolicysections
Miscellaneous: diagnostics, options, preferences