Hi @Abhi_
If you are using any of the S32DS versions that have Processor Expert, you can check out the following post.
HOWTO: Change the CPU Derivative in an SDK-Based Application Project
Otherwise, changing from S32K144 to S32K142 in the latest S32DS versions is not possible. The most viable option is to generate a new project with the corresponding MCU and then copy the application source files from your pre-existing project as well as any customizations made to the project properties according to the device specifications.
B.R.
VaneB