Skip to content
JS
JavaScript error

SyntaxError

The JavaScript exception "SyntaxError: private fields can't be deleted" occurs when delete is used on a private element of a class or an object.

Reference entryJavaScriptFetched
SyntaxError: Private fields can not be deleted (V8-based)
As listed by MDN Web Docs
SyntaxError: private fields can't be deleted (Firefox)
As listed by MDN Web Docs
SyntaxError: Cannot delete private field X (Safari)
As listed by MDN Web Docs
Category
SyntaxError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.273Z.