Ledger
removeAll() [Ledger class]
Remove any ledger data from the device.
The device must not be connected to the Cloud. The operation will fail if any of the ledgers are in use.
The data is not guaranteed to be removed in an irrecoverable way.
// PROTOTYPE
static int removeAll();
// EXAMPLE
#include "Particle.h"
SYSTEM_MODE(SEMI_AUTOMATIC);
SYSTEM_THREAD(ENABLED);
SerialLogHandler logHandler(LOG_LEVEL_INFO);
void setup() {
// Remove any ledger data from the device.
// The device must not be connected to the Cloud. The operation will fail if any of the ledgers are in use.
Ledger::removeAll();
Particle.connect();
}
void loop() {
}