delete all registered os templates when before registering new ones