I have 2 dev orgs. In org1 I have created one class, aura components and its controller class & custom meatadata. Then created an unlocked package and version it. Post that I have installed the package (first version) in org 2. Then I have removed the class, aura components and custom metadata from package and done the new versioning. When I installed the new version in 2nd org then I have noticed that class and aura components got deleted but controller class and metadata got deprecated.
Could you please let me know that why some components got deprecated and some are got deleted?