  def DeleteInstanceProfile(self, profile_name: str) -> None:
    """Deletes an instance profile.

    Args:
      profile_name (str): The name of the instance profile to delete.
    """
    logger.info('Deleting instance profile {0:s}'.format(profile_name))
    try:
      self.client.delete_instance_profile(InstanceProfileName=profile_name)
    except self.client.exceptions.NoSuchEntityException:
      logger.info('IAM role {0:s} did not exist'.format(profile_name))
Deletes an instance profile.

Args:
profile_name (str): The name of the instance profile to delete.
libcloudforensics/providers/aws/internal/iam.py