amended weblink model delete function