--- /dev/null
+#!/bin/sh
+# Copyright (c) 2023 Jakub Czajka <jakub@ekhem.eu.org>
+# License: GPL-3.0 or later.
+
+. /etc/environment
+
+# Replace %2F with '/'.
+NAME=$(echo ${NAME_ON_DRIVE} | sed 's/%2F/\//g')
+
+echo "HTTP/1.1 200 OK"
+echo "Content-Type: text/html"
+echo "
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ body {
+ white-space: pre-wrap;
+ }
+ </style>
+</head>
+<body>
+$(python3 -u -m gdrive_knife 2>&1 delete --token ${gdrive_auth_token} ${NAME})
+</body>
+</html>"