Jump to: navigation, search

Difference between revisions of "Activity:DeleteFile (Activity)"


Line 26: Line 26:
 
This activity deletes files specified by full path names given in the '''IN''' arguments '''SingleFileNamefiles''' and '''FileNames'''.
 
This activity deletes files specified by full path names given in the '''IN''' arguments '''SingleFileNamefiles''' and '''FileNames'''.
 
It returns the number of actual deleted files.
 
It returns the number of actual deleted files.
 +
 +
= Example =
 +
{| class="wikitable sortable" | width = "50%"
 +
|-
 +
! Argument !! Value
 +
|- align="left"
 +
| FileNames || New System.Collections.Generic.List(of String) _
 +
From {"C:\file1.xml","C:\file2.xml"}
 +
|}
 +
  
 
==See also==
 
==See also==

Revision as of 17:02, 4 March 2015

Delete File
Name DeleteFile
Purpose Delete a file
Category File Primitives
Returns Number of deleted files
Version 2.3+

The DeleteFileactivity deletes one or more files specified by its full path.

Arguments

Argument Type Direction Purpose
FileNames List<String> In List of full path names of files to be deleted
Result Integer Out Number of deleted file
SingleFileName String In Full path name of a file to be deleted

Usage

This activity deletes files specified by full path names given in the IN arguments SingleFileNamefiles and FileNames. It returns the number of actual deleted files.

[edit]

Example

Argument Value
FileNames New System.Collections.Generic.List(of String) _

From {"C:\file1.xml","C:\file2.xml"}


See also