If you want to do it without losing the data in the subdomain you can:
1: Create the new subdomain.
2: Delete the directory that is created for the new subdomain.
3: Rename the old subdomain directory to the new subdomain.
4: Delete the old subdomain.