def deleteItemByName(folderID, itemName, token, communicator):
  """Delete an item from a folder based on its name
    folderID -- ID of the folder.
    itemName -- Name of the item to delete.
    token -- Authentication token.
    communicator -- Midas session communicator.
    Returns a boolean indicating success or failure."""
  folderChildren = communicator.folder_children(token, folderID)
  folder_children_items = folderChildren["items"]
  for item in folder_children_items:
    if item["name"] == itemName:
      communicator.delete_item(token, item["item_id"])
      return True
  return False