wp-includes/class-wp-script-modules.php:326Unmarks the script module so it will no longer be enqueued in the page.
$idstring public function dequeue( string $id ) { $this->queue = array_values( array_diff( $this->queue, array( $id ) ) ); }Introduced in 6.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-script-modules.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.