I will be grateful.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
In case of droplet, linux,
I use shutdown -h now
I guess one has to have sudo permission for running the said command…
Interact with the DigitalOcean API via the command line: