//delete it with the furniture tool, and replace it correctly
Edit: this isnt really an IC question, as, IC you could just move the thing, it wouldnt get "stuck" against the wall, and IC there is no such thing as a furniture tool, you just move things with your hands and unlock chests with a key.