Skip to main content

Delete external file

Deletes an external file from Slack

Function DeleteExternalFile(Val Token, Val FileID) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringBot token
FileID--fileidStringFile identifier

Returns: Map Of KeyAndValue - serialized JSON response from Slack


1C:Enterprise/OneScript code example
    Token  = "xoxb-6965308400114-696804637...";
FileID = "F082DR4HXT3";

Result = OPI_Slack.DeleteExternalFile(Token, FileID);
    oint slack DeleteExternalFile \
--token "***" \
--fileid "F08222DAAAW"
Result
{
"ok": true
}