function DM_deleteduneline(handles)

global data

if isempty(data.duneline)
    msgbox('No duneline to delete!','No duneline')
else
    delete(data.handles.duneline)
    data.duneline = [];
    set(handles.dune,'Visible','off')
    set(handles.profile,'Visible','off')
    set(handles.changeprofile,'Visible','off')
    delete(data.handles.pcolor.dune)
    delete(data.handles.contour.dune)
    delete(data.handles.profile_line.dune)
    delete(data.handles.legend)
    delete(data.handles.profile_line.profile_dune)
    delete(data.handles.profile_line.profile_nodune)
end