# curl_multi_cleanup

Definition: | include builtins\libcurl.e CURLMcode curlmcode = curl_multi_cleanup(atom curlm)
Description: | Close down a multi session. Cleans up and removes a whole multi stack. It does not free or touch any individual easy handles in any way - they still need to be closed individually, using the usual curl_easy_cleanup way. The order of cleaning up should be: 1 - curl_multi_remove_handle before any easy handles are cleaned up 2 - curl_easy_cleanup can now be called independently since the easy handle is no longer connected to the multi handle 3 - curl_multi_cleanup should be called when all easy handles are removed Return value: CURLMcode type, general libcurl multi interface error code. On success, CURLM_OK is returned.
pwa/p2js: | Not supported.
See Also: | curl_multi_init, curl_easy_cleanup, curl_easy_init