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):
   """
   Deletes an item from the list via a REST API. The item to be deleted is specified in the URL path.
   Returns a JSON response indicating whether the deletion was successful or if the item was not found.
   >>> # Assuming an API endpoint at http://localhost:5000/
   >>> # Initial list of items: ["Apple", "Banana", "Orange"]
   >>> # Send DELETE request to http://localhost:5000/items/Banana
   '{"message": "Item successfully deleted."}'
   """
   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})
  