🤖
Cubed-API
  • Cubed-API
  • Tutorials & Guides
    • Installing Cubed-API
    • Session IDs
    • Logging Into An Account
    • Selecting A Server To Edit
  • Documentation
    • login
    • getServers
    • selectServer
    • validate
    • Files
      • getFolder
      • read
      • edit
      • delete
      • createFolder
      • create
    • API
      • servers
      • server
      • topboosted
      • topvoted
      • player
        • bedwars
        • tntwars
        • warzone
        • info
    • utils
      • orderServers
      • playerUUID
  • Terms Of Use
  • Source Code (GitHub)
Powered by GitBook
On this page
  1. Documentation
  2. Files

delete

.delete() is used to delete a file or folder

PreviouseditNextcreateFolder

Last updated 4 years ago

Was this helpful?

CtrlK

Was this helpful?

.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');

Read the guide on session IDs: https://pondwadermc.gitbook.io/cubed-api/tutorials-and-guides/sessions