code: def delete(name, profile="splunk"):
      '''
      Delete a splunk search
  
      CLI Example:
  
         splunk_search.delete 'my search name'
      '''
      client = _get_splunk(profile)
      try:
          client.saved_searches.delete(name)
          return True
      except KeyError:
          return Nonf delete(name, profile="splunk"):
      '''
      Delete a splunk search
  
      CLI Example:
  
         splunk_search.delete 'my search name'
      '''
      client = _get_splunk(profile)
      try:
          client.saved_searches.delete(name)
          return True
      except KeyError:
          return None
docs: Delete a splunk search
  
      CLI Example:
  
         splunk_search.delete 'my search name'