Skip to content

delete

Delete an existing reference.

This method works for both direct and symbolic references. The reference will be immediately removed on disk.

Signature

ts
class Reference {
  delete(): void;
}

Errors

  • Error

    This method will throws an error if the reference has changed from the
    time it was looked up.

Released under the MIT License.