Updating and deleting unused plugs