wp comment trash

Trashes a comment.

$ wp comment trash <id>...

OPTIONS

<id>...
The IDs of the comments to trash.

EXAMPLES

# Trash comment.
$ wp comment trash 1337
Success: Trashed comment 1337.

GLOBAL PARAMETERS

--path=<path> Path to the WordPress files.

--url=<url> Pretend request came from given URL. In multisite, this argument is how the target site is specified.

--ssh=[<scheme>:][<user>@]<host|container>[:<port>][<path>] Perform operation against a remote server over SSH (or a container using scheme of "docker", "docker-compose", "vagrant").

--http=<http> Perform operation against a remote WordPress installation over HTTP.

--user=<id|login|email> Set the WordPress user.

--skip-plugins[=<plugins>] Skip loading all plugins, or a comma-separated list of plugins. Note: mu-plugins are still loaded.

--skip-themes[=<themes>] Skip loading all themes, or a comma-separated list of themes.

--skip-packages Skip loading all installed packages.

--require=<path> Load PHP file before running the command (may be used more than once).

--[no-]color Whether to colorize the output.

--debug[=<group>] Show all PHP errors and add verbosity to WP-CLI output. Built-in groups include: bootstrap, commandfactory, and help.

--prompt[=<assoc>] Prompt the user to enter values for all command arguments, or a subset specified as comma-separated values.

--quiet Suppress informational messages.

Related commands
wp comment approve

Approves a comment.

wp comment count

Counts comments, on whole blog or on a given post.

wp comment create

Creates a new comment.

wp comment delete

Deletes a comment.

wp comment exists

Verifies whether a comment exists.

wp comment generate

Generates some number of new dummy comments.

wp comment get

Gets the data of a single comment.

wp comment list

Gets a list of comments.

wp comment meta

Adds, updates, deletes, and lists comment custom fields.

wp comment recount

Recalculates the comment_count value for one or more posts.

wp comment spam

Marks a comment as spam.

wp comment status

Gets the status of a comment.

wp comment trash

Trashes a comment.

wp comment unapprove

Unapproves a comment.

wp comment unspam

Unmarks a comment as spam.

wp comment untrash

Untrashes a comment.

wp comment update

Updates one or more comments.