The following snippet will let you remove image sizes from media gallery in WordPress.

Snippet Source/Credit: WPSnipp