# SimConnect_RemoveInputEvent The **SimConnect\_RemoveInputEvent** function is used to remove an input event from a specified input group object.   ##### Syntax ``` cpp HRESULT SimConnect_RemoveInputEvent( HANDLE hSimConnect, SIMCONNECT_INPUT_GROUP_ID GroupID, const char* pszInputDefinition ); ```   ##### Parameters {{< table-wrapper >}} | Parameter | Description | Type | |----------------------|-------------------------------------------------------------------------------------------|---------| | *hSimConnect* | Handle to a SimConnect object. | Integer | | *GroupID* | Specifies the ID of the client defined input group from which the event is to be removed. | Integer | | *pszInputDefinition* | Pointer to a null-terminated string containing the input definition. | Integer | {{< /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. | | E\_INVALIDARG | A SimConnect section in the [SimConnect.cfg](../../simconnect-cfg-definition/) file did not contain the config index requested in the parameters. | {{< /table-wrapper >}}   ##### Example ``` cpp static enum INPUT_ID { INPUT_1, }; static enum EVENT_ID { EVENT_1, }; hr = SimConnect_MapClientEventToSimEvent(hSimConnect, EVENT_1, "parking_brakes"); hr = SimConnect_MapInputEventToClientEvent(hSimConnect, INPUT_1, "a+B", EVENT_1); .... hr = SimConnect_RemoveInputEvent(hSimConnect, INPUT_1, "a+B"); ```   ##### Remarks The input string definitions must match exactly, before anything is removed from the group definition. For example, the string definitions "A+B" and "a+B" do not match.