clients/kratos/ruby/lib/ory-kratos-client/api/v0alpha1_api.rb
# Delete an Identity
# Calling this endpoint irrecoverably and permanently deletes the identity given its ID. This action can not be undone. This endpoint returns 204 when the identity was deleted or when the identity was not found, in which case it is assumed that is has been deleted already.  Learn how identities work in [Ory Kratos&#39; User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
# @param id [String] ID is the identity&#39;s ID.
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Delete an Identity
Calling this endpoint irrecoverably and permanently deletes the identity given its ID. This action can not be undone. This endpoint returns 204 when the identity was deleted or when the identity was not found, in which case it is assumed that is has been deleted already.  Learn how identities work in [Ory Kratos' User And Identity Model Documentation].
Delete an Identity Calling this endpoint irrecoverably and permanently deletes the identity given its ID . This action can not be undone . This endpoint returns 204 when the identity was deleted or when the identity was not found in which case it is assumed that is has been deleted already . Learn how identities work in [ Ory Kratos ' User And Identity Model Documentation ] .
def admin_delete_identity_with_http_info(id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: V0alpha1Api.admin_delete_identity ...'
      end
      if @api_client.config.client_side_validation && id.nil?
        fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha1Api.admin_delete_identity"
      end
      local_var_path = '/identities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || ['oryAccessToken']
      new_options = opts.merge(
        :operation => :"V0alpha1Api.admin_delete_identity",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: V0alpha1Api#admin_delete_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def admin_delete_identity_with_http_info ( id , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: V0alpha1Api.admin_delete_identity ...' end if @api_client . config . client_side_validation && id . nil? fail ArgumentError , "Missing the required parameter 'id' when calling V0alpha1Api.admin_delete_identity" end local_var_path = '/identities/{id}' . sub ( '{' + 'id' + '}' , CGI . escape ( id . to_s ) ) query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ 'oryAccessToken' ] new_options = opts . merge ( :operation => :" V0alpha1Api.admin_delete_identity " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :DELETE , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: V0alpha1Api#admin_delete_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Delete an Identity
Calling this endpoint irrecoverably and permanently deletes the identity given its ID.
Delete an Identity Calling this endpoint irrecoverably and permanently deletes the identity given its ID .
# verify the required parameter 'id' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
nil, response status code and response headers
nil response status code and response headers
Array<(nil, Integer, Hash)>
id
ID is the identity's ID.
ID is the identity ' s ID .
opts
<not_specific>
<not_specific>
opts the optional parameters
opts the optional parameters