added deletion of files & applying backup