I want to delete a directory through python and the cmd window but i want it to open the command do the rd and then close and continue on with the program with out me having to type RD /s folderName

Use os.system("RD /s folderName") or subprocess.Popen depending on your python install