It can take several days to several weeks to get rid of clear slime depending on the severity and cause of the problem. It's essential to maintain proper tank maintenance routines to prevent it from reoccurring.