input: from flask import Flask, request
  import json
  
  app = Flask(__name__)
  items = ["Apple", "Banana", "Orange"]
  
  @app.route('/items', methods=["GET"])
  def get_items():
   return json.dumps(items)
  
  @app.route('/items/<item>', methods=["DELETE"])
  def delete_item(item):
   """Delete an item from the list based on the item name provided in the URL.
      If the item exists in the list, it removes the item and returns a success message.
      If the item does not exist in the list, it returns a message indicating the item was not found.
      >>> # Assuming the server is running and accessible at http://localhost:5000
      >>> import requests
      >>> response = requests.delete('http://localhost:5000/items/Banana')
      >>> response.json()
      {'message': 'Item successfully deleted.'}
      >>> response = requests.delete('http://localhost:5000/items/Banana')
      >>> response.json()
      {'message': 'Item not found.'}
      """
   if item in items:
    items.remove(item)
    message = "Item successfully deleted."
   else:
    message = "Item not found."
   return json.dumps({"message": message})
output:     if item in items:
          items.remove(item)
          message = "Item successfully deleted."
      else:
          message = "Item not found."
      return json.dumps({"message": message})