Issue with creation New Folder or New File

When we have create a new folder or new file it doesn’t create same issue with deletion of old file and old folder

Your question is not clear do you want to create a new file after deleting any old file or what?