remove credentials after updating