If I accidentally click on New Query or only want to try something there would be useful to delete the draft. About half of my queries could be deleted (I marked them with ~ tilde in name). There should be a possibility to delete a draft.
I'm not sure we should delete anything (short of doxing and the like). Maybe we can "archive" a draft so that it doesn't appear in your history of queries unless a "show archived queries" box is checked.
I understand not deleting already published queries, but (in my opinion) drafts could be deleted without loosing any important content.
(I also do not fully understand publishing queries, if my not published drafts can see anybody logged in.)
Indeed, everything is public, and I think we're careful to not call them 'drafts' (if not we should be!)- published just means you are finished tweaking them for a bit.
Not sure what the right thing to do here is.
What I do — I just reuse the queries which better'd be deleted or which were just those empty ones. Once you've renamed and changed it nobody knows what it was before that. Perhaps some process for marking queries for reuse could be added (like a separate section where you can move queries to and from so that you can keep queries to be reused in there together, or any other way)
The drafts can already be renamed, and their description and query can already be overwritten and resubmitted to effectively blank them permanently. As such, the ability to delete a draft wouldn't lose anything users can't already remove by hand, except for the url to return 404 instead of an empty draft.
Right. I think it makes a lot of sense to *archive* old queries so that they don't clutter up useful, but not-worth-publishing queries. Given that queries don't take up a huge amount of drive space, it seems the only reason for deleting them is to de-clutter one's activity history.
My 2cents: I created a new query by mistake, it is a draft and the fact that I cannot delete it is super annoying. I am ok with the idea of not deleting published queries.
When you click publish you know that they are going to be out there forever, just like Wikipedia revisions, but drafts should be "like tears in the rain".
If you ask me, published queries should be there or archived (to mark that a given query maybe is not maintained anymore or obsolete), and you should be able to delete drafts.
FWIW, I think there's a big difference between "delete" and "archive". Delete breaks links and hides past activity. Archive gets stuff I don't want to see out of the way. I think "archive" is the right metaphor here. I would hate it if someone could no longer download the results of a query because some user decided to delete it.
That said, if a query was never executed, maybe it should be delete-able forever. It's hard to imagine any secondary effects of deleting a query that was never run.
As I understand it, past versions of draft queries (not published queries) are not kept. So the dozen drafts I have at https://quarry.wmflabs.org/Krinkle have (by my choosing) already been broken for all intents and purposes.
I now keep them there and try to remember to repurpose of them the empty/unnamed drafts for my next real query so that I eventually run out of them, however this rarely works in practice as for every three throw-away queries I run I tend to remember once and forget twice, thus building up ever more untitled/empty drafts.