I would not use any detergents as you could jeopardize your tanks health.
I would just take it out and scrub it very well.
If you decide to use detergents, as this may be the only way to clean it. You have to make sure to rinse it very thoroughly. I would maybe also suggest to put some activated carbon in the tank if you clean it with deterrent, as the carbon will catch any detergent that you could of missed.