How do I remove structures and move existing structures to other dimensions

I would like to find a way to remove a structure and be able to move certain structures to another dimensions like for example: a desert temple in the end
Continue to help post