Dev

solves #487
Checks if there is a secret key and delete or otherwise delete.