API17

Difference between revisions of "JFile::delete"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JFile::delete|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JFile::delete|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JFile::delete ($file)
+
public static function delete ($file)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 27: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' boolean True on success
boolean True on success
+
* '''Defined''' on line 147 of libraries/joomla/filesystem/file.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/filesystem/file.php (line 141)
+
* '''Referenced by'''
* see source code in [[jplatform:filesystem/file.php#cl-141|BitBucket]]
+
** [[JInstaller::abort/11.1|JInstaller::abort]]
===Referenced by===
+
** [[JInstallerHelper::cleanupInstall/11.1|JInstallerHelper::cleanupInstall]]
* [[JInstaller::abort/11.1|JInstaller::abort]]
+
** [[JFolder::delete/11.1|JFolder::delete]]
* [[JInstallerHelper::cleanupInstall/11.1|JInstallerHelper::cleanupInstall]]
+
** [[JPath::isOwner/11.1|JPath::isOwner]]
* [[JFolder::delete/11.1|JFolder::delete]]
+
** [[JInstaller::parseFiles/11.1|JInstaller::parseFiles]]
* [[JPath::isOwner/11.1|JPath::isOwner]]
+
** [[JInstaller::removeFiles/11.1|JInstaller::removeFiles]]
* [[JInstaller::parseFiles/11.1|JInstaller::parseFiles]]
+
** [[JInstallerPlugin::uninstall/11.1|JInstallerPlugin::uninstall]]
* [[JInstaller::removeFiles/11.1|JInstaller::removeFiles]]
+
** [[JInstallerPackage::uninstall/11.1|JInstallerPackage::uninstall]]
* [[JInstallerPlugin::uninstall/11.1|JInstallerPlugin::uninstall]]
+
** [[JInstallerLibrary::uninstall/11.1|JInstallerLibrary::uninstall]]
* [[JInstallerPackage::uninstall/11.1|JInstallerPackage::uninstall]]
+
** [[JInstallerFile::uninstall/11.1|JInstallerFile::uninstall]]
* [[JInstallerLibrary::uninstall/11.1|JInstallerLibrary::uninstall]]
 
* [[JInstallerFile::uninstall/11.1|JInstallerFile::uninstall]]
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JFile::delete source code''' on [[jplatform:filesystem/file.php#cl-139|BitBucket]]
 +
* {{JVer|11.1}} Class [[JFile/11.1|JFile]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Filesystem/11.1|Filesystem]]
 +
* [[JFile::delete|Other versions of JFile::delete]]
 +
{{SeeAlso:JFile::delete}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JFile::delete|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JFile::delete|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JFile/11.1|JFile]]
+
===User contributed notes===
* [[JFile::delete|Other versions of this method]]
 
{{SeeAlso:JFile::delete}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 58: Line 55:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JFile]][[Category:JFile::delete]]</noinclude>
 
<noinclude>[[Category:JFile]][[Category:JFile::delete]]</noinclude>

Revision as of 20:56, 27 April 2011

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JFile::delete[edit]

Description[edit]

Delete a file or array of files.

Template:Description:JFile::delete [Edit Descripton]

public static function delete ($file)
Parameter Type Default Description
$file mixed The file name or an array of file names

See also[edit]

Template:SeeAlso:JFile::delete [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />