wp_delete_file
wp_delete_file ( $file )
Parameters:- (string) file The path to the file to delete.
Returns:- (bool) True on success, false on failure.
Defined at:Change Log: - Introduced in WordPress: 4.2.0
- Deprecated in WordPress: —
Description
Deletes a file.