How can i delete the session stored by twitch after log in by my twitch api script? or log out button?

YOU SHOULD NOT BE DOING THAT
YOU SHOULD NOT BE DOING THAT
YOU SHOULD NOT BE DOING THAT

As per the documentation:

Step 1 DOES NOT mention cURL

You SHOULD do the following:

<a href="https://id.twitch.tv/oauth2/authorize?client_id=<your client ID>&redirect_uri=<your registered redirect URI>&response_type=code&scope=<space-separated list of scopes>&force_verify=true">Login with Twitch</a>

And substitute in the relevant items between the < >

YOU SHOULD NOT BE USING CURL AT ALL AT THIS POINT
YOU SHOULD NOT BE USING CURL AT ALL AT THIS POINT
YOU SHOULD NOT BE USING CURL AT ALL AT THIS POINT