how to sync my directory with my deleted file change

C++
$> p4 sync -f

Source

Also in C++: