delete() {
        const ThisModel = this.getClass();
        if (typeof ThisModel.session === "undefined") {
            throw new Error(
                [
                    `Tried to delete a ${ThisModel.modelName} model instance without a session. `,
                    "You cannot call `.delete` on an instance that you did not receive from the database.",
                ].join("")
            );
        }

        this._onDelete();
        ThisModel.session.applyUpdate({
            action: DELETE,
            query: getByIdQuery(this),
        });
    }
Deletes the record for this {@link Model} instance.
You'll still be able to access fields and values on the instance.

@return {undefined}