remove(_:for:options:task:)
Removes the specified credential from the credential storage for the specified protection space, on behalf of the given task and using the given options.
Declaration
func remove(_ credential: URLCredential, for protectionSpace: URLProtectionSpace, options: [String : Any]? = nil, task: URLSessionTask)Parameters
- credential:
The credential to remove.
- protectionSpace:
The protection space from which to remove the credential.
- options:
A dictionary containing options to consider when removing the credential.
For possible keys, see Dictionary Key For Credential Removal Options. You should use this when trying to delete a credential that has the Synchronizable policy.
- task:
The task using the protection space that you wish to remove the credential for.
Discussion
The credential is removed from both persistent and temporary storage.