Call resource.widget.delete() when deleting resources