Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

MozNetworkStatsManager.clearStats()

This article needs a technical review. How you can help.

This API is available on Firefox OS for internal applications only.

Summary

The clearStats method removes all stats related to the provided network from DB.

Syntax

var stats = clearStats(network);

Parameters

network
The origin of the data. It can specify wifi, mobile, or null. If null, data measurement from both origins are merged. To know in advance which kind of origin is available, the MozNetworkStatsManager.getAvailableNetworks method returns an Array of interfaces.

Return

A DOMRequest object.

Specifications

Not part of any specification.

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, kscarfone, zeller
 Last updated by: chrisdavidmills,