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 = "F087UE02ZEK";
Result = OPI_Slack.DeleteFile(Token, FileID);
- Bash
- CMD/Bat
oint slack DeleteFile \
--token "***" \
--fileid "F0883989S3U"
oint slack DeleteFile ^
--token "***" ^
--fileid "F0883989S3U"
Result
{
"ok": true
}