Fixes #5255 - Fixing clearing content for repo destroy