WordPress at a glance
function is not described

wp_register_comment_personal_data_eraser() WP 4.9.6

Registers the personal data eraser for comments.

No Hooks.

Return

Array. $erasers An array of personal data erasers.

Usage

wp_register_comment_personal_data_eraser( $erasers );
$erasers(array) (required)
An array of personal data erasers.

Code of wp register comment personal data eraser: wp-includes/comment.php VER 5.1.1

<?php
function wp_register_comment_personal_data_eraser( $erasers ) {
	$erasers['wordpress-comments'] = array(
		'eraser_friendly_name' => __( 'WordPress Comments' ),
		'callback'             => 'wp_comments_personal_data_eraser',
	);

	return $erasers;
}