refactor delete parameters