diff --git a/server.mjs b/server.mjs index 3b76b69..bf428a0 100644 --- a/server.mjs +++ b/server.mjs @@ -859,8 +859,8 @@ app.put('/api/bins/:id', (req, res) => { app.delete('/api/bins/:id', (req, res) => { const bin = get_bin(req.params.id); if (!bin) return fail(res, 'not found', 404); + // Only delete the processed output — source image is managed independently if (bin.image_filename) remove_image_file(bin.image_filename); - remove_image_file(bin.source_id); delete_bin(bin.id); ok(res); });