diff --git a/examples/ESP8266_RTOS/user/user_main.c b/examples/ESP8266_RTOS/user/user_main.c
index 79359b5ca274c34b4db0e673384023cf17f38b24..2760c0ee692c48fefc065f75835cefa428377a9b 100644
--- a/examples/ESP8266_RTOS/user/user_main.c
+++ b/examples/ESP8266_RTOS/user/user_main.c
@@ -100,8 +100,6 @@ static void mg_task(void *arg) {
   }
 }
 
-xTaskHandle s_mg_task_handle;
-
 void user_init(void) {
   uart_div_modify(0, UART_CLK_FREQ / 115200);