WordPress at a glance
function is not described

WP_Dependencies::dequeue() public WP 2.1.0

Dequeue an item or items.

Decodes handles and arguments, then dequeues handles and removes arguments from the class property $args.

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

No Hooks.

Return

null. Null. Nothing.

Usage

$WP_Dependencies = new WP_Dependencies();
$WP_Dependencies->dequeue( $handles );
$handles(string|string[]) (required)
Item handle (string) or item handles (array of strings).

Changelog

Since 2.1.0 Introduced.
Since 2.6.0 Moved from WP_Scripts.

Code of WP_Dependencies::dequeue() WP 5.7

<?php
public function dequeue( $handles ) {
	foreach ( (array) $handles as $handle ) {
		$handle = explode( '?', $handle );
		$key    = array_search( $handle[0], $this->queue, true );

		if ( false !== $key ) {
			// Reset all dependencies so they must be recalculated in recurse_deps().
			$this->all_queued_deps = null;

			unset( $this->queue[ $key ] );
			unset( $this->args[ $handle[0] ] );
		}
	}
}