How to safely remove old url's server block, wordpress files, and get rid of 301 redirect?

Old URL successfully redirected for over a year, no longer need it.

Changed the URL of my Wordpress blog a year ago. The old website’s wordpress files and config files remained on my Droplet all the while. No I want to get rid of everything to do with the old URL on my droplet, which includes ending the redirect, removing the URL from DO nameservers, etc.

Can someone please guide me in terms of what to do first, second, etc.? Any words of advice would be appreciated for the absolute novice writing these words.

Thank you very much for your time

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @thankyouDO,

Your task should be easy enough.

Nginx as you know works in blocks. You’ll just need to remove the nginx configuration file of the old domain name you used. Once you do, you can remove the files as well and restart nginx.

This should be it, that’s everything.

Regards, KDSys

Ubuntu 16.04 using Easy Engine Nginx