[lib] adds a command to delete a range