def delete(options = {})
      params = {}.tap do |param|
        param[:buildNumbers] = options[:build_numbers].join(",") if options[:build_numbers]
        param[:artifacts]    = 1 if options[:artifacts]
        param[:deleteAll]    = 1 if options[:delete_all]
      end

      endpoint = api_path + "?#{to_query_string_parameters(params)}"
      client.delete(endpoint, {})
      true
    rescue Error::HTTPError => e
      false
    end
def delete(options = {})
      params = {}.tap do |param|
        param[:buildNumbers] = options[:build_numbers].join(",") if options[:build_numbers]
        param[:artifacts]    = 1 if options[:artifacts]
        param[:deleteAll]    = 1 if options[:delete_all]
      end

      endpoint = api_path + "?#{to_query_string_parameters(params)}"
      client.delete(endpoint, {})
      true
    rescue Error::HTTPError => e
      false
    end
Remove this component's build data stored in Artifactory

 @option options [Array<String>] :build_numbers (default: nil)
   an array of build numbers that should be deleted; if not given
   all builds (for this component) are deleted
 @option options [Boolean] :artifacts (default: +false+)
   if true the component's artifacts are also removed
 @option options [Boolean] :delete_all (default: +false+)
   if true the entire component is removed

 @return [Boolean]
   true if the object was deleted successfully, false otherwise