## CookieCollection::Remove method


Removes the specified cookie from the collection.

```cpp
bool System::Net::CookieCollection::Remove(const System::SharedPtr<Cookie> &cookie) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| cookie | const System::SharedPtr\<Cookie\>\& | The cookie to remove. |

### ReturnValue

True when the specified cookie is removed successfully, otherwise false.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Cookie](../../cookie/)
* Class [CookieCollection](../)
* Namespace [System::Net](../../)
* Library [Aspose.PUB for C++](../../../)
