[[reference-nodes-clear_repositories_metering_archive]]

////////
===========================================================================================================================
||                                                                                                                       ||
||                                                                                                                       ||
||                                                                                                                       ||
||        ██████╗ ███████╗ █████╗ ██████╗ ███╗   ███╗███████╗                                                            ||
||        ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝                                                            ||
||        ██████╔╝█████╗  ███████║██║  ██║██╔████╔██║█████╗                                                              ||
||        ██╔══██╗██╔══╝  ██╔══██║██║  ██║██║╚██╔╝██║██╔══╝                                                              ||
||        ██║  ██║███████╗██║  ██║██████╔╝██║ ╚═╝ ██║███████╗                                                            ||
||        ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝ ╚═╝     ╚═╝╚══════╝                                                            ||
||                                                                                                                       ||
||                                                                                                                       ||
||    This file is autogenerated, DO NOT send pull requests that changes this file directly.                             ||
||    You should update the script that does the generation, which can be found in:                                      ||
||    https://github.com/elastic/elastic-client-generator-js                                                             ||
||                                                                                                                       ||
||    You can run the script with the following command:                                                                 ||
||       npm run elasticsearch -- --version <version>                                                                    ||
||                                                                                                                       ||
||                                                                                                                       ||
||                                                                                                                       ||
===========================================================================================================================
////////

[discrete]
[[client.nodes.clearRepositoriesMeteringArchive]]
=== client.nodes.clearRepositoriesMeteringArchive

You can use this API to clear the archived repositories metering information in the cluster.

{ref}/clear-repositories-metering-archive-api.html[{es} documentation]

[discrete]
==== Function signature

[source,ts]
----
(NodesClearRepositoriesMeteringArchiveRequest, options?): Promise<NodesClearRepositoriesMeteringArchiveResponse>
----

[discrete]
==== NodesClearRepositoriesMeteringArchiveRequest

[pass]
++++
<pre>
++++
interface NodesClearRepositoriesMeteringArchiveRequest extends <<RequestBase>> {
  node_id: <<NodeIds>>
  max_archive_version: <<_long, long>>
}

[pass]
++++
</pre>
++++
[discrete]
==== NodesClearRepositoriesMeteringArchiveResponse

[pass]
++++
<pre>
++++
type NodesClearRepositoriesMeteringArchiveResponse = NodesClearRepositoriesMeteringArchiveResponseBase

[pass]
++++
</pre>
++++
