diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 5c6654f97cfdd0..831a02cf3dfa82 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -2276,6 +2276,28 @@ Returns `napi_ok` if the API succeeded. This API checks if the Object passed in has the named property. +#### *napi_delete_property* + +```C +napi_status napi_delete_property(napi_env env, + napi_value object, + napi_value key, + bool* result); +``` + +- `[in] env`: The environment that the N-API call is invoked under. +- `[in] object`: The object to query. +- `[in] key`: The name of the property to delete. +- `[out] result`: Whether the property deletion succeeded or not. `result` can +optionally be ignored by passing `NULL`. + +Returns `napi_ok` if the API succeeded. + +This API attempts to delete the `key` own property from `object`. + + #### *napi_set_named_property*