Astra_Addon_Filesystem::delete( String $file, boolean $recursive = false, boolean $type = false )

Delete file from the filesystem.


Description


Parameters

$file

(String) (Required) Path to the file or directory.

$recursive

(boolean) (Optional) If set to true, changes file group recursively.

Default value: false

$type

(boolean) (Optional) Type of resource. 'f' for file, 'd' for directory.

Default value: false


Return

(void)


Source

File: classes/class-astra-addon-filesystem.php

	public function delete( $file, $recursive = false, $type = false ) {
		astra_addon_filesystem()->get_filesystem()->delete( $file, $recursive, $type );
	}

Changelog

Changelog
Version Description
2.6.4 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.