Difference between revisions of "Activity:DeleteDirectoryContent (Activity)"
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | The DeleteDirectoryContent deletes directory content based on criteria and optionally, removes the directory itself. | ||
+ | |||
+ | =Description= | ||
{{ActivityInfoBox | {{ActivityInfoBox | ||
| title = Delete Directory Content | | title = Delete Directory Content | ||
Line 9: | Line 12: | ||
| version = 2.3+ | | version = 2.3+ | ||
}} | }} | ||
− | |||
− | ==Arguments== | + | ===Arguments=== |
{| class="wikitable sortable" | width = "50%" | {| class="wikitable sortable" | width = "50%" | ||
|- | |- | ||
Line 29: | Line 31: | ||
|} | |} | ||
− | ==Usage== | + | ===Usage=== |
This activity deletes all files matching the search pattern '''Filter''' and timestamp criteria '''CreationTime''' and '''LastWriteTime''' in the given directory. If '''DeleteEmptyDirectory''' is set to true the system tries to remove the directory as well. | This activity deletes all files matching the search pattern '''Filter''' and timestamp criteria '''CreationTime''' and '''LastWriteTime''' in the given directory. If '''DeleteEmptyDirectory''' is set to true the system tries to remove the directory as well. | ||
It returns the number of actual deleted files, including the directory. | It returns the number of actual deleted files, including the directory. | ||
+ | |||
+ | <!-- DO NOT REMOVE THIS -->{{Activity/End}}<!-- DO NOT REMOVE THIS --> | ||
==See also== | ==See also== | ||
Line 38: | Line 42: | ||
* [[Activity:DeleteFile_(Activity)]] | * [[Activity:DeleteFile_(Activity)]] | ||
* [[Activity:ReadDirectoryContent_(Activity)]] | * [[Activity:ReadDirectoryContent_(Activity)]] | ||
− | |||
− | |||
− |
Latest revision as of 09:50, 4 November 2015
The DeleteDirectoryContent deletes directory content based on criteria and optionally, removes the directory itself.