WordPress at a glance
function is not described

wp_delete_file() WP 4.2.0

Delete a file

Hooks in function
Return

Nothing (null).

Usage

wp_delete_file( $file );
$file(string) (required)
The path to the file to delete.

Code of wp delete file: wp-includes/functions.php VER 5.1.1

<?php
function wp_delete_file( $file ) {
	/**
	 * Filters the path of the file to delete.
	 *
	 * @since 2.1.0
	 *
	 * @param string $file Path to the file to delete.
	 */
	$delete = apply_filters( 'wp_delete_file', $file );
	if ( ! empty( $delete ) ) {
		@unlink( $delete );
	}
}