DeleteTag

delete

/20160918/tagNamespaces/{tag_namespace_id}/tags/{tag_name}

Delete the specified tag definition.

Note: You cannot restore a deleted tag.

To delete a tag, you must first retire the tag. Use UpdateTag to retire a tag.

After you start the DeleteTag operation, you cannot start either the BulkDeleteTags or the CascadeDeleteTagNamespace operation until the DeleteTag operation completes.

The DeleteTag operation triggers a process that removes the tag from all resources in your tenancy. The following tasks are done immediately:

  • If the tag was a cost-tracking tag, it no longer counts against your 10 cost-tracking tags limit, whether or not you first disabled it.
  • If the tag was used with dynamic groups, none of the rules that contain the tag will be evaluated against the tag.

    When you start the DeleteTag operation, the state of the tag changes to DELETING, and tag removal from resources begins. This can take up to 48 hours depending on the number of resources that were tagged. When all tags have been removed, the state changes to DELETED.

    Once the deleted tag changes its state to DELETED, you can use the same tag name to create a new tag.

  • Request

    Supported Media Types
    Path Parameters
    Header Parameters
    • For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
    Back to Top

    Response

    Supported Media Types

    202 Response

    The request was accepted for processing.
    Headers

    400 Response

    Bad Request
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source

    403 Response

    Forbidden
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source

    404 Response

    Not Found
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source

    412 Response

    Precondition Failed
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source

    429 Response

    Too Many Requests
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source

    500 Response

    Internal Server Error
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source

    Default Response

    An error has occurred.
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source
    Back to Top