The object that you want to delete is referenced by a resource in one of the widgets. You cannot delete the object until all references to it are removed.