Running a script means constantly polling a database of like 10,000 clans. Not gonna happen.
More realistically, you could give an inactive time frame wherein if the clan is inactive for a certain amount of time, it can be 'overwritten' if someone wants the same tag.