How to clean a build using cocos console?

I have been using cocos console to build my android app. How do I clean it using the cocos console ?

To compile I do:

cocos run -s ./AppLocationFolder -p android

I have not found an answer yet and I am therefore using on my Mac the “direct” way:

cd <project>/proj.android-studio/
find . -type f \( -name "*.so" -o -name "*.a" -o -name "*.o" -o -name "*.o.d" \) | xargs rm

It works like a charm.

1 Like