We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc73fde + e98bd9a commit bca9671Copy full SHA for bca9671
src/User_Command.php
@@ -260,6 +260,9 @@ public function get( $args, $assoc_args ) {
260
* $ wp user delete $(wp user list --role=contributor --field=ID) --reassign=2
261
* Success: Removed user 813 from http://example.com
262
* Success: Removed user 578 from http://example.com
263
+ *
264
+ * # Delete all contributors in batches of 100 (avoid error: argument list too long: wp)
265
+ * $ wp user delete $(wp user list --role=contributor --field=ID | head -n 100)
266
*/
267
public function delete( $args, $assoc_args ) {
268
$network = Utils\get_flag_value( $assoc_args, 'network' ) && is_multisite();
0 commit comments