1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-02 23:27:50 +02:00
OpenIntegrations/docs/en/md/Neocities/File-managment/Delete-selected-files.md

50 lines
950 B
Markdown
Raw Normal View History

2024-09-24 11:38:18 +03:00
---
sidebar_position: 3
---
# Delete selected files
Deletes a file or multiple files from Neocities
`Function DeleteSelectedFiles(Val Token, Val Paths) Export`
| Parameter | CLI option | Type | 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
<br/>
:::tip
Neocities API docs: [neocities.org/api](https://neocities.org/api)
:::
<br/>
```bsl title="Code example"
Token = "7419cd51de4037f7...";
Paths = New Array;
Paths.Add("/test/pic1.png");
Paths.Add("/test/gif.gif");
Paths.Add("/pic2.png");
Result = OPI_Neocities.DeleteSelectedFiles(Token, Paths);
```
```sh title="CLI command example"
oint neocities DeleteSelectedFiles --token "7419cd51de4037f7..." --paths %paths%
```
```json title="Result"
```