How do I remove an old subdomain that I placed in a directory, such as /

When you delete a subdomain in cPanel, it removes the entries that take users to that subdomain, but not the actual files. If you wish to remove the files as well, delete the directory in cPanel's File Manager interface (Home >> Files >> File Manager).