Add an API method for deleting a given plugin