When you no longer need a dedicated CVM, you can terminate it at any time. After the dedicated CVM is terminated, both the local disks and non-elastic cloud disks mounted on the instance will be terminated as well, and the data stored on these storage media will be lost. However, the elastic cloud disks mounted on the instance will be retained, and the data stored on them will not be affected.
Use the TerminateInstances API to terminate a dedicated CVM instance. For more information, see TerminateInstances.