This page redirects to an external site: https://developer.wordpress.org/reference/functions/wp_delete_comment/
Trashes or deletes a comment.
The comment is moved to trash instead of permanently deleted unless trash is disabled, item is already in the trash, or $force_delete is true.
The post comment count will be updated if the comment was approved and has a post ID available.
<?php wp_delete_comment( $comment_id, $force_delete ) ?>
Since: 2.0.0
wp_delete_comment() is located in wp-includes/comment.php.