should pass in a function and the id  e g  def  delete credentials self  id  fn if id fn cr continue then call like self  delete credentials project id  lambda cr  cr  project id  then do not need to have the complicated logic below 