It's not exactly clear that you meant to post it as an answer. Mistakes happen.
You mentioned in the question that your current approach was suboptimal, and then later posted it as an answer. So it's understandable that someone interpreted it as a failed attempt to edit your question; especially since you didn't explain anything about it and only posted the code snippet.
If you don't like @techie007's edit to your question, you can revert it (and maybe move the reference to your current approach to the answer), add some explanation to the answer, e.g. "This is what I'm currently using", and flag it for moderator attention to be undeleted. I'm not sure you can undelete it yourself, if you can, consider doing that.
For those of us that cannot view deleted posts: Matthew's answer is, in its entirety:
echo subDir/a.png anotherDir/b.jpg thirdDir/c.gif|rm