Cloud functions

Particle.unsubscribe()

Removes all subscription handlers previously registered with Particle.subscribe().

// PROTOTYPE
void unsubscribe();
// SYNTAX
Particle.unsubscribe();

There is no function to unsubscribe a single event handler.