remove unused middleware template