We can do something like "del password", but that doesn't assure anything. If there is still one thing that references that string, the password will still be in memory, and even if there isn't, python might delay its deletion.