refactored delete into a partial