1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/Bitrix24/File-managment/Delete-file.md
T
Vitaly the Alpaca (bot) 7ed0455efe Main build (Jenkins)
2024-10-12 15:46:40 +03:00

1.5 KiB

sidebar_position
sidebar_position
4

Delete file

Delete file by ID

Function DeleteFile(Val URL, Val FileID, Val Token = "") Export

Parameter CLI option Type Description
URL --url String URL of webhook or a Bitrix24 domain, when token used
FileID --fileid String, Number ID of removing file
Token --token String Access token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


:::tip Method at API documentation: disk.file.delete :::

    URL    = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
    FileID = "12874";

    Result = OPI_Bitrix24.DeleteFile(URL, FileID);

    URL    = "b24-ar17wx.bitrix24.by";
    Token  = "21750a67006e9f06006b12e400000001000...";
    FileID = "12876";

    Result = OPI_Bitrix24.DeleteFile(URL, FileID, Token);
    
  oint bitrix24 DeleteFile --url "b24-ar17wx.bitrix24.by" --fileid "5010" --token "fe3fa966006e9f06006b12e400000001000..."

{
 "result": true,
 "time": {
  "start": 1728454828.81245,
  "finish": 1728454828.89366,
  "duration": 0.0812110900878906,
  "processing": 0.0537998676300049,
  "date_start": "2024-10-09T09:20:28+03:00",
  "date_finish": "2024-10-09T09:20:28+03:00",
  "operating_reset_at": 1728455428,
  "operating": 0.125946998596191
 }
}