Deleting unneeded blocks