---
layout: default
title: 'wp widget deactivate'
display_global_parameters: true
---

<small>[Commands](/commands/) &raquo; [widget](/commands/widget/) &raquo; deactivate</small>

`wp widget deactivate` - Deactivate one or more widgets from an active sidebar.

<small>Quick links: <a href="https://github.com/wp-cli/wp-cli/issues?q=is%3Aopen+label%3Acommand%3Awidget-deactivate+sort%3Aupdated-desc">Github issues</a></small>

<hr />

Moves widgets to Inactive Widgets.

### OPTIONS

&lt;widget-id&gt;...
: Unique ID for the widget(s)

### EXAMPLES

    # Deactivate the recent-comments-2 widget.
    $ wp widget deactivate recent-comments-2
    Success: 1 widget deactivated.



