checkpoints.destroy
Removes one of your checkpoints for everyone. Its ID is not used again while the server runs.
Signature
Section titled “Signature”checkpoints.destroy(id: number): Promise<ActionResult>Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
id |
number |
The ID from checkpoints.create. |
Returns
Section titled “Returns”A promise of an ActionResult: applied, or rejected with marker-not-found for an
ID that is not one of your checkpoints.
Example
Section titled “Example”import { checkpoints } from "nativemp";
for (const marker of checkpoints.listAll()) await checkpoints.destroy(marker.id);Related
Section titled “Related”checkpoints.create: make onecheckpoints.update: change itcheckpoints.listAll: all of themscriptMarkerDestroyed: it is gone