Share feedback
Answers are generated based on the documentation.

sbx policy rm network

DescriptionRemove a network rule
Usagesbx policy rm network [-g | SANDBOX] [flags]

Description

Remove a network rule by rule ID, resource, or both.

Use -g/--global to remove from the global policy, or provide SANDBOX to remove from policy "local" scoped to that sandbox.

Use "sbx policy ls" to see active policies and their IDs/resources.

Options

OptionDefaultDescription
-g, --globalRemove from the global policy
--idRemove by rule ID
--resourceRemove by resource value(s), comma-separated

Global options

OptionDefaultDescription
-D, --debugEnable debug logging

Examples

# List policies to find the ID or resource to remove
sbx policy ls

# Remove a global rule by resource
sbx policy rm network -g --resource api.example.com

# Remove a global rule by ID
sbx policy rm network -g --id 2d3c1f0e-4a73-4e05-bc9d-f2f9a4b50d67

# Remove a sandbox-scoped rule by resource
sbx policy rm network my-sandbox --resource api.example.com