delete
.delete() is used to delete a file or folder
.delete(SessionID, path)
Delete a file or folder in a servers file manager.
Parameter
Type
Required
Description
SessionID
string
true
The session ID that you want to perform this action on
path
string
true
The path of the file/folder you wish to delete
Example:
// Dependencies
const CubedCraft = require('cubed-api');
// Deleting the file
CubedCraft.files.delete('SessionID', '/plugins/Skript/scripts/badskript.sk');
Last updated
Was this helpful?