"hs project upload" error

I deleted 2 functions from my 2026.03 private app, and now I cannot upload it. I get the following error: :multiply: ERROR Warning: You are about to remove a component. This operation may be irreversible and could have unintended consequences. Please review the impact of this removal before proceeding.
There is no ‘confirm y/n’ prompt. That’s just the end. How can I upload my project?

Hey @Anya23,
Thanks for posting in the Community!
Can you please upload a screenshot of what you see, as well as confirm whether the behavior is the same in an incognito window/different browser?
Shane, Senior Community Moderator

Hi,

I am not using a browser, I am using the “hs project upload” CLI command from VS Code. This is what I see:

When I re-added the function and the -hsmeta.json file the upload ran. When I removed them again, I got the above.

Hey @Anya23,
Thanks for providing this! And apolgies for the delay here.
I’d like to tag in a few Community experts to see if they have any insight on how to troubleshoot this.
@Phil_Vallender, @Anton, and @alyssamwilie - do any of you have insight?
Shane, Senior Community Moderator

@STierney Ok, I’ve figured this out myself. When I am running “hs project upload” it is building and uploading the project, it is just not deploying that build. To fix this, use

hs project deploy --force then choose your latest build.

Hey @Anya23,
Thank you so much for confirming this solution!!
Shane, Senior Community Moderator