lib/oci/identity/identity_client.rb
# Deletes the specified tag definition. This operation triggers a process that removes the
# tag from all resources in your tenancy.
#
# These things happen immediately:
# \u00A0
#   * If the tag was a cost-tracking tag, it no longer counts against your 10 cost-tracking
#   tags limit, whether you first disabled it or not.
#   * If the tag was used with dynamic groups, none of the rules that contain the tag will
#   be evaluated against the tag.
#
# Once you start the delete 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 as well as the regions in which those resources reside. When all tags have been
# removed, the state changes to DELETED. You cannot restore a deleted tag. Once the deleted tag
# changes its state to DELETED, you can use the same tag name again.
#
# To delete a tag, you must first retire it. Use {#update_tag update_tag}
# to retire a tag.
#
# @param [String] tag_namespace_id The OCID of the tag namespace.
#
# @param [String] tag_name The name of the tag.
#
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @option opts [String] :if_match 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.
#
# @return [Response] A Response object with data of type nil
Deletes the specified tag definition. This operation triggers a process that removes the
tag from all resources in your tenancy.

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

Once you start the delete 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 as well as the regions in which those resources reside. When all tags have been
removed, the state changes to DELETED. You cannot restore a deleted tag. Once the deleted tag
changes its state to DELETED, you can use the same tag name again.

To delete a tag, you must first retire it. Use {#update_tag update_tag}
to retire a tag.
Deletes the specified tag definition . This operation triggers a process that removes the tag from all resources in your tenancy . These things happen immediately : \ u00A0 If the tag was a cost - tracking tag it no longer counts against your 10 cost - tracking tags limit whether you first disabled it or not . If the tag was used with dynamic groups none of the rules that contain the tag will be evaluated against the tag . Once you start the delete 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 as well as the regions in which those resources reside . When all tags have been removed the state changes to DELETED . You cannot restore a deleted tag . Once the deleted tag changes its state to DELETED you can use the same tag name again . To delete a tag you must first retire it . Use { #update_tag update_tag } to retire a tag .
def delete_tag(tag_namespace_id, tag_name, opts = {})
      logger.debug 'Calling operation IdentityClient#delete_tag.' if logger
      raise "Missing the required parameter 'tag_namespace_id' when calling delete_tag." if tag_namespace_id.nil?
      raise "Missing the required parameter 'tag_name' when calling delete_tag." if tag_name.nil?
      raise "Parameter value for 'tag_namespace_id' must not be blank" if OCI::Internal::Util.blank_string?(tag_namespace_id)
      raise "Parameter value for 'tag_name' must not be blank" if OCI::Internal::Util.blank_string?(tag_name)
      path = '/tagNamespaces/{tagNamespaceId}/tags/{tagName}'.sub('{tagNamespaceId}', tag_namespace_id.to_s).sub('{tagName}', tag_name.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
      post_body = nil
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#delete_tag') do
        @api_client.call_api(
          :DELETE,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body
        )
      end
    end
def delete_tag ( tag_namespace_id , tag_name , opts = { } ) logger . debug 'Calling operation IdentityClient#delete_tag.' if logger raise "Missing the required parameter 'tag_namespace_id' when calling delete_tag." if tag_namespace_id . nil? raise "Missing the required parameter 'tag_name' when calling delete_tag." if tag_name . nil? raise "Parameter value for 'tag_namespace_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( tag_namespace_id ) raise "Parameter value for 'tag_name' must not be blank" if OCI :: Internal :: Util . blank_string? ( tag_name ) path = '/tagNamespaces/{tagNamespaceId}/tags/{tagName}' . sub ( '{tagNamespaceId}' , tag_namespace_id . to_s ) . sub ( '{tagName}' , tag_name . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' if-match ' ] = opts [ :if_match ] if opts [ :if_match ] post_body = nil OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'IdentityClient#delete_tag' ) do @api_client . call_api ( :DELETE , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body ) end end
Deletes the specified tag definition.
Deletes the specified tag definition .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type nil
A Response object with data of type nil
Response
tag_namespace_id
<not_specific>
tag_name
<not_specific>
opts
:if_match 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.
: if_match 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 .
<not_specific>
opts the optional parameters
opts the optional parameters