Skip to main content

Delete file

Deletes a file on Slack

Function DeleteFile(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 = "F0823KY8YH2";

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