Report this

What is the reason for this report?

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

Posted on January 1, 2020

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



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!

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.

Ubuntu 16.04 using Easy Engine Nginx

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.