Jump to content

API File.Delete: Difference between revisions

From Flowcode Help
JonnyW (talk | contribs)
XML import
No edit summary
Line 1: Line 1:
<sidebar>API Contents</sidebar>
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
Deletes the file or directory structure
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
<div style="width:25%; float:right" class="toc">
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Delete'''
====Class hierarchy====
|-
[[API File|File]]
| colspan="2" | Deletes the file or directory structure&nbsp;
:[[API File|Delete]]
|-
</div>
|-
__TOC__
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
 
| width="90%" | Filename
==Parameters==
|-
[[Variable Types|STRING]] ''Filename''
| colspan="2" | The file to delete&nbsp;
:The file to delete
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
==Return value==
|}
[[Variable Types|BOOL]]
 
Returns true if the operation is a success, else false





Revision as of 11:41, 16 January 2023

Delete
Deletes the file or directory structure 
- STRING Filename
The file to delete 
- BOOL Return


Detailed description

No additional information


Examples

Calling in a calculation

  • Declare a variable 'result' of type BOOL
  • Add to a calculation icon:
    result = ::File.Delete("filename")

No additional examples