Correct way to disable unused built-in modules to reduce build file size?

To build an Android instant app it is important to reduce the build file size.
What is the correct way to disable unused built-in modules?
Just remove them from Packages/manifest.json?

I found the answer here: