CA State: Filed as Nonresident, but sold some stock. What do I do with Schedule D (540) that was generated?

I worked in CA for 10 days in 2023.  During the year, I also sold some stock (which was not affiliated with CA sources).

 

I do not understand why TurboTax Desktop 2023 generated a Schedule D (540).  On the form itself, it says "Do not complete this schedule if all of your California gains (losses) are the same as your federal gains (losses)."

 

Can I delete this form?


Or is the correct way to do this is to go to the Miscellaneous -> Other adjustments to income section?  (To remove the capital gain/loss)