'Unload all plugins and remove the from the configuration.'

def unload_plugins(self):

    beets.config['plugins'] = []
    beets.plugins._classes = set()
    beets.plugins._instances = {}
    Item._types = Item._original_types
    Album._types = Album._original_types
