# SimConnect_UnsubscribeToFacilities The **SimConnect\_UnsubscribeToFacilities** function is used to request that notifications of additions to the facilities cache are not longer sent.   ##### Syntax ``` cpp HRESULT SimConnect_UnsubscribeToFacilities( HANDLE hSimConnect, SIMCONNECT_FACILITY_LIST_TYPE type ); ```   ##### Parameters {{< table-wrapper >}} | Parameter | Description | Type | |-------------|---------------------------------------------------------------------------------------------------------------------------------------------------|---------| | hSimConnect | Handle to a SimConnect object. | Integer | | type | Specifies one member of the [`SIMCONNECT_FACILITY_LIST_TYPE`](../structures-and-enumerations/simconnect-facility-list-type/) enumeration type. | Enum | {{< /table-wrapper >}}   ##### Return Values The function returns an **HRESULT**. Possible values include, but are not limited to, those in the following table. {{< table-wrapper >}} | Return value | Description | |--------------|-------------------------| | S\_OK | The function succeeded. | | E\_FAIL | The function failed. | {{< /table-wrapper >}}   ##### Remarks This is used to terminate notifications generated by the [`SimConnect_SubscribeToFacilities`](simconnect-subscribetofacilities/) function.     ##### See Also - [SimConnect API Reference](../../simconnect-api-reference/) - [SimConnect\_SubscribeToFacilities](simconnect-subscribetofacilities/) - [SimConnect\_RequestFacilitiesList](simconnect-requestfaciliteslist/) - [SimConnect\_UnsubscribeToFacilities\_EX1](simconnect-unsubscribetofacilities-ex1/)