<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=TFile.Delete</id>
		<title>TFile.Delete - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=TFile.Delete"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TFile.Delete&amp;action=history"/>
		<updated>2026-05-06T02:00:06Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=TFile.Delete&amp;diff=782&amp;oldid=prev</id>
		<title>Falcon: Created page with &quot; '''''function Delete(const Source: string): Boolean'''''   Source: a path to a file to delete   Result: Whenever delete was successful or not ==Description== This function de...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TFile.Delete&amp;diff=782&amp;oldid=prev"/>
				<updated>2013-07-26T22:49:46Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;function Delete(const Source: string): Boolean&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;   Source: a path to a file to delete   Result: Whenever delete was successful or not ==Description== This function de...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; '''''function Delete(const Source: string): Boolean'''''&lt;br /&gt;
  Source: a path to a file to delete&lt;br /&gt;
  Result: Whenever delete was successful or not&lt;br /&gt;
==Description==&lt;br /&gt;
This function deletes file pointed by Source. If the path is out of script's sandbox, [[EAccessViolation]] exception is thrown.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
begin &lt;br /&gt;
  if File.Exists('soldat.ini.bak') then&lt;br /&gt;
    try&lt;br /&gt;
      File.Delete('soldat.ini.bak');&lt;br /&gt;
    except    &lt;br /&gt;
      Player.WriteConsole('Path out of sandbox', $FFFFFFFF);&lt;br /&gt;
    end;&lt;br /&gt;
  else&lt;br /&gt;
    Player.WriteConsole('Cannot delete the backup', $FFFFFFFF);&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Category:TFile]]&lt;/div&gt;</summary>
		<author><name>Falcon</name></author>	</entry>

	</feed>