add clearall method to plugin