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 = "F084MEWKZH7";

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