Removing the template