-- upgrading retrieve-by-id to handle empty results
-- completing code and tests for plugin delete