BBC.SHARED.JOBI.TEMPFILE-DELETE

Summary

Object type
JOBI
Object Folder
PACKAGES/BEST-BLU/BBC.SHARED/SOURCE/TEMPFILES
Title
Deletes a temporary file
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-03-24 08:00:43
Last Modified
WRITER/B4A am: 2022-07-01 19:11:53 11 x
Last Used
-

Description

This include deletes a temporary file.

Requirements

  • Unix: bash, rm
  • Windows: Powershell 7.0

Parameter

Input

Unix

$bbcs_temp_file
script variable containing the name of the temporary file

Windows

$bbcs_temp_file
powershell variable containing the name of the temporary file

Output

Example

:include BBC.SHARED.JOBI.TEMPFILE-DELETE

Process

:switch &$PLATFORM#
:case "UNIX"
rm -f $bbcs_temp_file
:case "WINDOWS"
Remove-Item $bbcs_temp_file
:endswitch