API: Delete a zettel manual api manual zettelstore zmk 00001012000000 00001012000000 00001012920000 1 (c) 2020-present by Detlef Stern 20210713150005 00001004010000 00001004011200 00001006050000 00001010040100 00001010070600 00001012920000 en EUPL-1.2-or-later 20221219154608 20221219154608 public Deleting a zettel within the Zettelstore is executed on the first box that contains that zettel. Zettel with the same identifier, but in subsequent boxes remain. If the first box containing the zettel is read-only, deleting that zettel will fail, as well for a Zettelstore in read-only mode or if authentication is enabled and the user has no access right to do so. The endpoint to delete a zettel is /z/{ID}, where {ID} is a placeholder for the zettel identifier. You must send a HTTP DELETE request to this endpoint: # curl -X DELETE http://127.0.0.1:23123/z/00001000000000 HTTP Status codes 204 Delete was successful, there is no body in the response. 403 You are not allowed to delete the given zettel. Maybe you do not have enough access rights, or either the box or Zettelstore itself operate in read-only mode. 404 Zettel not found. You probably specified a zettel identifier that is not used in the Zettelstore.