-refactor delete