Refactor render delete action.