1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
OpenIntegrations/docs/en/md/Neocities/File-managment/Delete-selected-files.md
Vitaly the Alpaca (bot) acef484801 Main build (Jenkins)
2024-10-09 09:42:00 +03:00

1017 B

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


:::tip Neocities API docs: neocities.org/api :::

    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);
    
  oint neocities DeleteSelectedFiles --token "7419cd51de4037f7..." --paths %paths%

{
 "result": "success",
 "message": "file(s) have been deleted"
}