code: def founditem_delete_view(request, item_id):
      
      if request.method == "POST":
          try:
              a = FoundItem.objects.get(id=item_id)
              if request.POST.get("full_delete", False):
                  a.delete()
                  messages.success(request, "Successfully deleted found item.")
              else:
                  a.found = True
                  a.save()
                  messages.success(request, "Successfully marked found item as found!")
          except FoundItem.DoesNotExist:
              pass
  
          return redirect("index")
      else:
          founditem = get_object_or_404(FoundItem, id=item_id)
          return render(request, "lostfound/founditem_delete.html", {"founditem": founditem})
docs: Delete a founditem.
  
      id: founditem id