---
title: "System::Text::Json::Nodes::JsonObject::Remove method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json.nodes/jsonobject/remove/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Text::Json::Nodes::JsonObject::Remove method. Removes key from container in C++."
---

## JsonObject::Remove method


Removes key from container.

```cpp
bool System::Text::Json::Nodes::JsonObject::Remove(const String &propertyName) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| key | const String\& | Key to remove. |

### ReturnValue

True if key was found and removed, false otherwise.

## See Also

* Class [String](../../../system/string/)
* Class [JsonObject](../)
* Namespace [System::Text::Json::Nodes](../../)
* Library [Aspose.PDF for C++](../../../)
