Out Plane
ip-profile

ip-profile delete

Permanently delete an IP access profile.

destructiverepeatable--dry-run

Deletes a profile.

The platform refuses while anything still uses it, so ip-profile unassign has to run first. ip-profile get lists what is still attached.

Usage

outplane ip-profile delete <PROFILE> [flags]

Arguments

ArgumentTypeDescription
PROFILEstringProfile name or id. Required.

Flags

FlagTypeDescription
-y, --yesboolAcknowledge the deletion. Not sufficient on its own.
--confirm-namestringThe profile's name, repeated. Guards against deleting the wrong one.

The global flags apply as well.

Output

FieldTypeDescription
idstring
namestring
descriptionstring | null
rulesintHow many networks it allows.
assignmentsintHow many applications use it.
ruleListarrayThe networks themselves, {cidr, description}. Sorted, and JSON only.
assignedAppsarrayThe applications using it, {id, app, appId}. id is the assignment's own id, which is what detaching needs.
createdAtstring | nullRFC 3339, UTC.
changedboolFalse for a dry run.

Examples

Check what would go, and what still uses it

outplane ip-profile delete office --dry-run --json
{
  "assignments": 0,
  "changed": false,
  "name": "office",
  "rules": 2
}

Request deletion. Returns exit 4 with a command to replay

outplane ip-profile delete office

The confirmed form

outplane ip-profile delete office --yes --confirm-name office

What to Know

  • The platform refuses while the profile is assigned to anything, with its own message. That is the server's rule and this command does not predict it; ip-profile get lists what still uses it.
  • Refused under an agent harness, exit 4 with confirmation.required, whatever flags are given.
  • Outside a harness, both --yes and --confirm-name are required and the name has to match exactly.

Errors

Beyond 0 for success, this command exits with:

ExitKindMeaning
2usageInvalid arguments, unknown flag, or client-side validation failure.
3authNot authenticated, token revoked or expired, or forbidden for this team.
4confirmation_requiredA destructive operation stopped. Replay the command in confirm_command.
5not_foundThe named resource does not exist, or is not visible to this credential.
8upstreamThe Out Plane API returned a server error.

The code on the error object is one of ipprofile.not_found, ipprofile.confirm_name_mismatch, confirmation.required, usage.missing_argument, context.no_team. Branch on that, or on the exit status. The message is prose and changes.

On this page