CLOUD-381: aws credential deletion fix.