cleanup
Remove middleware