Removed dependency but it's still in android/ios builds

I’m getting errors from angular-moment, so I uninstalled it with npm. It’s no longer listed in package.json or bower.json in my working directory, but it’s still in both of the platforms folders. Is there anything I need to do besides “ionic build android/ios”? Is it safe to delete things from \platforms and re-build?