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):
   if item in items:
    items.remove(item)
    message = "Item successfully deleted."
   else:
    message = "Item not found."
   return json.dumps({"message": message})
  
  """
  Implement a REST API in Python using Flask to delete an item from a list. The API should have:
  1. A GET route to return the current list of items.
  2. A DELETE route to remove a specified item from the list and return a message indicating success or failure.
  
  >>> items
  ["Apple", "Banana", "Orange"]
  >>> delete_item("Banana")
  {"message": "Item successfully deleted."}
  >>> items
  ["Apple", "Orange"]
  >>> delete_item("Grapes")
  {"message": "Item not found."}
  """
output:     
      if item in items:
          items.remove(item)
          message = "Item successfully deleted."
      else:
          message = "Item not found."
      return json.dumps({"message": message})
  