Delete file
Deletes a file on Slack
Function DeleteFile(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 = "F0823KY8YH2";
Result = OPI_Slack.DeleteFile(Token, FileID);
- Bash
- CMD/Bat
oint slack DeleteFile \
--token "***" \
--fileid "F08222C5G82"
oint slack DeleteFile ^
--token "***" ^
--fileid "F08222C5G82"
Result
{
"ok": true
}