Skip to main content

wp plugin deactivate (Multisite Context)

Overview

Disable plugins in a Multisite environment. Note: If a plugin was "Network Activated," it must be "Network Deactivated" — it cannot be disabled on a per-site basis until the network activation is removed.

Syntax

wp plugin deactivate <plugin>... [--url=<site-url>] [--network]

Basic Usage

Network-wide deactivation

wp plugin deactivate query-monitor --network

Output:

Success: Network deactivated plugin 'query-monitor'.

Deactivate for one subsite

wp plugin deactivate woo-coupons --url=shop.example.com

Common Gotchas

  1. "Missing" plugins — If you can't deactivate a plugin on a subsite, check if it's network-activated.
  2. Deactivating network-wide — This affects every site on the network immediately.

Next Steps