Delete custom scripts and update contract status