code: def delete_policy_version(policyName, policyVersionId,
              region=None, key=None, keyid=None, profile=None):
      '''
      Given a policy name and version, delete it.
  
      Returns {deleted: true} if the policy version was deleted and returns
      {deleted: false} if the policy version was not deleted.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_iot.delete_policy_version mypolicy version
  
      '''
  
      try:
          conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
          conn.delete_policy_version(policyName=policyName,
                                     policyVersionId=policyVersionId)
          return {'deleted': True}
      except ClientError as e:
          return {'deleted': False, 'error': __utils__['boto3.get_error'](e)f delete_policy_version(policyName, policyVersionId,
              region=None, key=None, keyid=None, profile=None):
      '''
      Given a policy name and version, delete it.
  
      Returns {deleted: true} if the policy version was deleted and returns
      {deleted: false} if the policy version was not deleted.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_iot.delete_policy_version mypolicy version
  
      '''
  
      try:
          conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
          conn.delete_policy_version(policyName=policyName,
                                     policyVersionId=policyVersionId)
          return {'deleted': True}
      except ClientError as e:
          return {'deleted': False, 'error': __utils__['boto3.get_error'](e)}
docs: Given a policy name and version, delete it.
  
      Returns {deleted: true} if the policy version was deleted and returns
      {deleted: false} if the policy version was not deleted.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_iot.delete_policy_version mypolicy version