湯を沸かして水にする
Meanings
1
wasting one's efforts; rendering one's efforts futile
Idiomatic expression literally meaning 'to boil water and turn it into water', used to describe doing something pointless or self-defeating.
Deleting all the materials you worked so hard to create is like boiling water only to turn it back into water.