WordPress at a glance
function is not described

PHPMailer\PHPMailer

PHPMailer::clearCCs() public WP 1.0

Clear all CC recipients.

{} It's a method of the class: PHPMailer{}

No Hooks.

Return

null. Nothing.

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->clearCCs();

Code of PHPMailer::clearCCs() WP 5.7.2

<?php
public function clearCCs()
{
    foreach ($this->cc as $cc) {
        unset($this->all_recipients[strtolower($cc[0])]);
    }
    $this->cc = [];
    $this->clearQueuedAddresses('cc');
}