Delete external file
Deletes an external file from Slack
Function DeleteExternalFile(Val Token, Val FileID) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Bot token |
FileID | --fileid | String | ✔ | File 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);
- Bash
- CMD/Bat
oint slack DeleteExternalFile \
--token "***" \
--fileid "F08222DAAAW"
oint slack DeleteExternalFile ^
--token "***" ^
--fileid "F08222DAAAW"
Result
{
"ok": true
}