<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "JavaScriptCore",
  "identifier" : "/documentation/JavaScriptCore/JSValue/deleteProperty(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "JavaScriptCore"
    ],
    "preciseIdentifier" : "c:objc(cs)JSValue(im)deleteProperty:"
  },
  "title" : "deleteProperty(_:)"
}
-->

# deleteProperty(_:)

Deletes the named property from the JavaScript object value.

```
func deleteProperty(_ property: Any!) -> Bool
```

## Parameters

`property`

The name of a property in the JavaScript object value.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if property deletion was successful; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Calling this method is equivalent to using the JavaScript `delete` operator on an object (for example, `delete object.property`). After deletion, attempting to retrieve the property’s value results in the undefined value, and any descriptor information that defines the property’s behavior (see the [`defineProperty(_:descriptor:)`](/documentation/JavaScriptCore/JSValue/defineProperty(_:descriptor:)) method or the JavaScript `defineProperty` function) is lost.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)