The delete_lines method was removed in favor of the object model, so you now need to use find_objects() to locate the lines first and then loop through them to call .delete() on each one individually.