---
title: "deleteCookie(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/httpcookiestorage/deletecookie(_:)"
---

# deleteCookie(_:)

Deletes the specified cookie from the cookie storage.

## Declaration

```swift
func deleteCookie(_ cookie: HTTPCookie)
```

## Parameters

- `cookie`: The cookie to delete.

## See Also

### Adding and removing cookies

- [removeCookies(since:)](foundation/httpcookiestorage/removecookies(since:).md)
- [setCookie(_:)](foundation/httpcookiestorage/setcookie(_:).md)
- [setCookies(_:for:mainDocumentURL:)](foundation/httpcookiestorage/setcookies(_:for:maindocumenturl:).md)
- [storeCookies(_:for:)](foundation/httpcookiestorage/storecookies(_:for:).md)
