In an ideal world the edits you made will attract upvotes and answers to your question - so you've done the right thing.
However, we don't live in an ideal world.
If you question has no, or only one zero scored answer, then you can delete it and repost it. There's nothing built into the system to prevent it. If you can't delete it then reposting the question is definitely frowned upon. We even have a moderator message template that covers question repetition.
However, if you do decide to delete and repost you must bear in mind a couple of things:
Other users may remember seeing your original question and think "hey, didn't you just post this?". If so, expect comments and even downvotes. This may not appear fair, but that's the way things are.
Deleted and downvoted questions count towards the automatic question block. Do this too often and you'll find yourself in a situation where you can't ask any more questions for a while.
Your best bet is to avoid getting into this situation in the first place. Take more care over asking questions:
- Don't ask as soon as you have a problem, try to work it out yourself. Build a minimal solution that demonstrates the problem before you post your question. This may well lead you to the solution so you don't have to ask.
- Write your question out in the "ask question" box but don't press "post". Read the other questions that the system suggests might be similar to yours. You never know you might get the answer from those.
- Monitor your question closely during the first few minutes. Respond to comments with edits to the question to improve it. That might help stave off the downvotes so you don't get into this situation again.