Destroy
Destroy the machine with the given id. When this action is performed, the machine is immediately shut down and marked for deletion from the datacenter. Any snapshots that were derived from the machine are also deleted. Access to the machine is terminated immediately and billing for the machine is prorated to the hour. This action can only be performed by the user who owns the machine, or in the case of a team, the team administrator.
Examples
HTTP
Node.js
1
# HTTP request:
2
https://api.paperspace.io
3
POST /machines/ps123abc/destroyMachine
4
x-api-key: 1ba4f98e7c0...
5
# Returns 204 on success
Copied!
1
paperspace.machines.destroy({
2
machineId: 'ps123abc',
3
}, function(err, res) {
4
// handle error or result
5
});
Copied!
Parameters
Name
Type
Attributes
Description
machineId
string
The id of the machine to destroy
releasePublicIp
boolean
<optional>
releases any assigned public ip address for the machine; defaults to false
Last modified 9mo ago
Copy link