Delete Main Function