WPDev.one
Core Function
View Source on Trac ↗

wp_delete_file()

wp_delete_file( mixed $file )

Deletes a file.

Parameters 1 required

Name / Type Description
$file
string

The path to the file to delete.

Required

Return Value

(bool)
True on success, false on failure.

Function Information

Since Version
4.2.0
Source File
wp-includes/functions.php
Advertisement