UNPKG

pterodactyl-manager

Version:

A powerful and easy-to-use API wrapper for Pterodactyl's API, providing a seamless integration of server management and user administration functionalities.

14 lines (12 loc) 404 B
const getServer = require('./getServer'); module.exports = async function deleteServer(url, headers, query) { try { const response = await fetch(`${url}/api/application/servers/${(await getServer(url, headers, query)).attributes.id}`, { method: "DELETE", headers }); return await response.text() } catch (err) { console.log(err); } };