Add rudimentary implementation of plugin removal.