function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Guntin Guntin L GarciaGuntin Guntin L Garcia 

Deprecate component from unmanaged package

Hi...

How could I deprecate an object field in my next version of an unmanaged package?

If the field is not included in the next unmanaged package, It launches an error in the installation process.

Thanks,
ShirishaShirisha (Salesforce Developers) 
Hi Guntin,

Greetings!

You can directly remove the component from the unmanaged package and make sure there are no references to the removed component to avoid errors when you trying to upgrade the package again.

Reference:https://help.salesforce.com/articleView?id=000326278&language=en_US&type=1&mode=1

This should be applied to unmanaged package as well.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri