remove_plugin

Function remove_plugin 

Source
pub fn remove_plugin(removed_name: &str)
Expand description

Remove a plugin by its name. Plugin lib.so file will be deleted and removed from config file

§Steps

  1. remove the repository folder if it exists
  2. remove the libso file from crate::common::REPOSITORIES_PATH
  3. remove the plugin_name: plugin_libso_path from crate::common::CONFIG_PATH

§Failure

If something went wrong it will exit with an error message printed to stderr.