Added the possibility to purge keys.

Closes #3