issue #18406: Check to see if item is used before showing delete button.