Skip to main content
Identity & Access/ZIAM

ZiamDeleteResource

Deletes one resource. For users this performs SoftDelete and removes direct organization, group, project, and role relationships. Use dryRun=true to preview the effect without changing data.

DELETE/api/v1/ziam/resources/{collection}/{id}

Operation ID

ZiamDeleteResource

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Path Parameters

  • collection
    StringRequired

    Resource collection name, such as users, organizations, groups, roles, applications, providers, certs, tokens, tenants, projects, project-memberships, or role-bindings.

  • id
    StringRequired

    Resource id.

Query Parameters

  • dryRun
    Boolean

    When true, validate and return delete impact without changing data or emitting sync events.

    Example: true

Responses

200 OK

Dry-run delete result when dryRun=true.

Content-Type: application/json

Response body root type: object

  • status
    String

    Status for this resource

    Example: ok

  • data
    Object

    Response payload data

    • uuid
      String

      UUID of the resource evaluated by the deletion dry run

      Example: 11111111111111111111111111111111

    • dryRun
      Boolean

      Dry run for this resource

      Example: true

    • canDelete
      Boolean

      Can delete for this resource

      Example: true

    • propagationStrategy
      String

      Propagation strategy for this resource

      Example: SoftDelete

    • deletionPhase
      String

      Deletion phase for this resource

      Example: Checking

    • retentionDays
      Integer

      Retention days for this resource

      Example: 30

      {"format":"int32"}

    • finalizers
      List

      Deletion finalizers, for example identity.zcf.io/oidc-client-cleanup.

    • effects
      List

      Human readable effects that will happen on real delete.