ModulesInstaller::delete()

Delete the given module, physically removing its files

Usage

$bool = $modulesInstaller->delete(string $class);

Arguments

NameType(s)Description
$classstring

Module name (class name)

Return value

bool

Exceptions

Method can throw exceptions on error:

  • WireException - If module can't be deleted, exception will be thrown containing reason.


ModulesInstaller methods and properties

API reference based on ProcessWire core version 3.0.251