Skip to content

Commit ad36514

Browse files
Copilotswissspidy
andcommitted
Add example for deleting site by URL to documentation
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 2da2c5f commit ad36514

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Site_Command.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,10 @@ public function delete( $args, $assoc_args ) {
447447
* # Get site ID by URL
448448
* $ wp site get http://example.com/subdir/ --field=blog_id
449449
* 2
450+
*
451+
* # Delete a site by URL
452+
* $ wp site delete $(wp site get http://example.com/subdir/ --field=blog_id) --yes
453+
* Success: The site at 'http://example.com/subdir/' was deleted.
450454
*/
451455
public function get( $args, $assoc_args ) {
452456
if ( ! is_multisite() ) {

0 commit comments

Comments
 (0)