Skip to content

Commit c801d48

Browse files
Add example for deleting multiple post IDs (#387)
The documentation isn't clear that to delete multiple posts the IDs must be space separated, not comma separated
1 parent c468d4d commit c801d48

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Post_Command.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,12 @@ public function get( $args, $assoc_args ) {
469469
* $ wp post delete 123 --force
470470
* Success: Deleted post 123.
471471
*
472+
* # Delete multiple posts
473+
* $ wp post delete 123 456 789
474+
* Success: Trashed post 123.
475+
* Success: Trashed post 456.
476+
* Success: Trashed post 789.
477+
*
472478
* # Delete all pages
473479
* $ wp post delete $(wp post list --post_type='page' --format=ids)
474480
* Success: Trashed post 1164.

0 commit comments

Comments
 (0)