Adds delete method to SharedCredential classes.