clearData

fun clearData(format: String = definedExternally)(source)

Removes the data of the specified formats. Removes all data if the argument is omitted.

MDN Reference