Wp plugin delete (WP-CLI)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen
$ wp help plugin delete

NAME

  wp plugin delete

DESCRIPTION

  Deletes plugin files without deactivating or uninstalling.

SYNOPSIS

  wp plugin delete [<plugin>...] [--all]

OPTIONS

  [<plugin>...]
    One or more plugins to delete.

  [--all]
    If set, all plugins will be deleted.

EXAMPLES

    # Delete plugin
    $ wp plugin delete hello
    Deleted 'hello' plugin.
    Success: Deleted 1 of 1 plugins.

    # Delete inactive plugins
    $ wp plugin delete $(wp plugin list --status=inactive --field=name)
    Deleted 'tinymce-templates' plugin.
    Success: Deleted 1 of 1 plugins.

E.g.:

wp plugin delete hello
wp plugin delete contact-form-7

Note:

  • Plugins don't need to be stopped before deletion
  • Must-use (mu) plugins cannot be stopped. You can only stop them through deleting them.

See also