(BLOCK (PARA (TEXT "Deleting a zettel within the Zettelstore is executed on the first ") (LINK-ZETTEL () "00001004011200" (TEXT "box")) (TEXT " that contains that zettel.") (SOFT) (TEXT "Zettel with the same identifier, but in subsequent boxes remain.") (SOFT) (TEXT "If the first box containing the zettel is read-only, deleting that zettel will fail, as well for a Zettelstore in ") (LINK-ZETTEL () "00001004010000#read-only-mode" (TEXT "read-only mode")) (TEXT " or if ") (LINK-ZETTEL () "00001010040100" (TEXT "authentication is enabled")) (TEXT " and the user has no ") (LINK-ZETTEL () "00001010070600" (TEXT "access right")) (TEXT " to do so.")) (PARA (TEXT "The ") (LINK-ZETTEL () "00001012920000" (TEXT "endpoint")) (TEXT " to delete a zettel is ") (LITERAL-INPUT () "/z/{ID}") (TEXT ", where ") (LITERAL-INPUT () "{ID}") (TEXT " is a placeholder for the ") (LINK-ZETTEL () "00001006050000" (TEXT "zettel identifier")) (TEXT ".") (SOFT) (TEXT "You must send a HTTP DELETE request to this endpoint:")) (VERBATIM-CODE () "# curl -X DELETE http://127.0.0.1:23123/z/00001000000000") (HEADING 1 () "http-status-codes" "http-status-codes" (TEXT "HTTP Status codes")) (DESCRIPTION ((LITERAL-INPUT () "204")) (BLOCK (BLOCK (PARA (TEXT "Delete was successful, there is no body in the response.")))) ((LITERAL-INPUT () "403")) (BLOCK (BLOCK (PARA (TEXT "You are not allowed to delete the given zettel.") (SOFT) (TEXT "Maybe you do not have enough access rights, or either the box or Zettelstore itself operate in read-only mode.")))) ((LITERAL-INPUT () "404")) (BLOCK (BLOCK (PARA (TEXT "Zettel not found.") (SOFT) (TEXT "You probably specified a zettel identifier that is not used in the Zettelstore."))))))