replace deleted when 'cmd'