remove www from my site so i could do multisite

i want to remove the www from my site but its not working, how to remove old redirection or setting