closing a file using Api ?

Pls help me

Thank you