pterowraptyl
    Preparing search index...

    Class LocationsModule

    Module for accessing Pterodactyl locations endpoints. This module provides methods to access location details, create locations, update locations, etc.

    Index

    Constructors

    Methods

    • Deletes a location from the panel. This action is irreversible. Note: A location can only be deleted if it has no associated nodes.

      Parameters

      Returns Promise<boolean>

      A promise that resolves to true if the location was successfully deleted.

      const deleted = await ptero.locations.deleteLocation({ id: 3 });
      console.log(deleted); // true

      Will throw an error if the location has associated nodes or if deletion fails.