Similar to what @chakrihacker said. Just rename the directory or if it's files, place in a tmp directory while you do your other deployment tasks. After all other tasks are complete and you've verified the deployment to be successful, backup what was in the tmp directory and remove it.