def delete_plugin(plugin_name):
    """Deletes the given plugin from local disk.

    Args:
        plugin_name: the plugin name
    """
    plugin = get_plugin(plugin_name)
    if plugin.builtin:
        raise ValueError(f"Cannot delete builtin plugin '{plugin_name}'")

    _update_plugin_settings(plugin_name, delete=True)
    etau.delete_dir(plugin.directory)
Deletes the given plugin from local disk.

    Args:
        plugin_name: the plugin name
    
fiftyone/plugins/core.py