implement clear mechanism

The clear() method will delete all scheduled stuff.