<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def delete(self, key):
        "Delete a `key` from the keystore."
        if key in self.data:
            self.delete_from_index(key)
        del self.data[key]