Add purge credentilas functionality