docs: def delete(name,
             endpoint='incidents',
             id=None,
             api_url=None,
             page_id=None,
             api_key=None,
             api_version=None):
      '''
      Remove an entry from an endpoint.
  
      endpoint: incidents
          Request a specific endpoint.
  
      page_id
          Page ID. Can also be specified in the config file.
  
      api_key
          API key. Can also be specified in the config file.
  
      api_version: 1
          API version. Can also be specified in the config file.
  
      api_url
          Custom API URL in case the user has a StatusPage service running in a custom environment.
  
      SLS Example:
  
      .. code-block:: yaml
  
          delete-my-component:
              statuspage.delete:
                  - endpoint: components
                  - id: ftgks51sfs2d
      '''
      ret = _default_ret(name)
      endpoint_sg = endpoint[:-1]  # singular
      if not id:
          log.error('Invalid %s ID', endpoint_sg)
          ret['comment'] = 'Please specify a valid {endpoint} ID'.format(endpoint=endpoint_sg)
          return ret
      if __opts__['test']:
          ret['comment'] = '{endpoint} #{id} would be removed!'.format(endpoint=endpoint_sg, id=id)
          ret['result'] = None
      sp_delete = __salt__['statuspage.delete'](endpoint=endpoint,
                                                id=id,
                                                api_url=api_url,
                                                page_id=page_id,
                                                api_key=api_key,
                                                api_version=api_version)
      if not sp_delete.get('result'):
          ret['comment'] = 'Unable to delete {endpoint} #{id}: {msg}'.format(endpoint=endpoint_sg,
                                                                             id=id,
                                                                             msg=sp_delete.get('comment'))
      else:
          ret['comment'] = '{endpoint} #{id} deleted!'.format(endpoint=endpoint_sg, id=id)
          ret['result'] = True