How to delete DetailViewObject

Hi,

can someone give me as small example how to delete a DetailViewObject in python.

As a reminder for myself and others.

import scriptcontext as sc
import Rhino as rh

for i in rh.RhinoDoc.ActiveDoc.Views.GetPageViews():
    for j in i.GetDetailViews():
        sc.doc.ActiveDoc.Objects.Delete(j.Id,True)