delete_plugins
delete_plugins ( $plugins, $deprecated = '' )
Parameters:- (string[]) plugins List of plugin paths to delete, relative to the plugins directory.
- (string) deprecated Not used.
Returns:- (bool|null|WP_Error) True on success, false if `$plugins` is empty, `WP_Error` on failure. `null` if filesystem credentials are required to proceed.
Defined at: - Introduced in WordPress: 2.6.0
- Deprecated in WordPress: —
Description
Removes directory and files of a plugin for a list of plugins.