From the course: Advanced iOS Development: Keychain Access

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Delete from keychain

Challenge: Delete from keychain - iOS Tutorial

From the course: Advanced iOS Development: Keychain Access

Start my 1-month free trial

Challenge: Delete from keychain

(bouncy music) - [Instructor] Okay, it's challenge time. So for this challenge, I want you to delete something from the keychain. Now, it's very similar to the search, so all you have to do is create a dictionary that specifies what you want to delete. So you might do something like GenericPassword and delete them all, or be a little bit more specific. And, of course, you have to call the right function. So instead of SecItemAdd, you'll call something else, and you can probably guess what it is. So you might want to create a new account first and then delete it. That way, you leave anything you already have in the keychain as it is. So good luck and we'll look at the solution in the next video.

Contents