Delete selected files
Deletes a file or multiple files from Neocities
- Parameters
- Advanced call ?
Function DeleteSelectedFiles(Val Token, Val Paths) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Auth token |
| Paths | --paths | String, Array of String | ✔ | Path or multiple paths of the files to be deleted |
Returns
Map Of KeyAndValue - serialized JSON response from Neocities
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Neocities API docs: neocities.org/api
1C:Enterprise/OneScript code example
Token = "f1e616e20ab5893b...";
Paths = New Array;
Paths.Add("/test/pic1.png");
Paths.Add("/test/gif.gif");
Paths.Add("/pic2.png");
Result = OPI_Neocities.DeleteSelectedFiles(Token, Paths);
- Bash
- CMD/Bat
oint neocities DeleteSelectedFiles \
--token "***" \
--paths "/test"
oint neocities DeleteSelectedFiles ^
--token "***" ^
--paths "/test"
Result
{
"result": "success",
"message": "file(s) have been deleted"
}