Extracted delete functions into one function in Create Survey code