delete algorithms