While building my XenServer farm I had a couple servers die on me, requiring XenServer to be re-installed. This left the local storage, DVD & removable storage from each dead server dangling in the pool. They show up in XenCenter as greyed out repositories.

To get the GUID of the dangling SR’s run this command from any host in the pool:

xe sr-list –minimal params=uuid host=”<not in database>”

Then run this command using the GUID’s from the above command to remove them:

xe sr-forget uuid=%dangling-SR-GUID%

Repeat the command to remove each of your dangling storage repositories.