An electronic device mounted on a vehicle, the electronic device comprising: a sensor module configured to recognize boarding and alighting of a passenger from the vehicle; a network interface configured to communicate with a mobile device disposed in the vehicle; a memory, storing a program including one or more instructions; and a processor, configured to execute the one or more instructions of the program, causing the electronic device to: detect alighting of the passenger using the sensor module, or detect alighting of the passenger when the mobile device disconnects from the network interface; characterized in that the processor is configured to execute the one or more instructions of the program, causing the electronic device to: determine a deletion level for data related to personal information of the passenger, the deletion level being based on a use history information of the passenger, including a latest use time and a use frequency, and the deletion level indicating a level for determining a subset or totality of information to be deleted from the personal information related data generated and/or edited by the passenger using the electronic device; and selectively delete the data related to personal information of the passenger from the memory based on the determined deletion level. a sensor module configured to recognize boarding and alighting of a passenger from the vehicle; a network interface configured to communicate with a mobile device disposed in the vehicle; a memory, storing a program including one or more instructions; and a processor, configured to execute the one or more instructions of the program, causing the electronic device to: detect alighting of the passenger using the sensor module, or detect alighting of the passenger when the mobile device disconnects from the network interface; characterized in that the processor is configured to execute the one or more instructions of the program, causing the electronic device to: determine a deletion level for data related to personal information of the passenger, the deletion level being based on a use history information of the passenger, including a latest use time and a use frequency, and the deletion level indicating a level for determining a subset or totality of information to be deleted from the personal information related data generated and/or edited by the passenger using the electronic device; and selectively delete the data related to personal information of the passenger from the memory based on the determined deletion level. detect alighting of the passenger using the sensor module, or detect alighting of the passenger when the mobile device disconnects from the network interface; characterized in that the processor is configured to execute the one or more instructions of the program, causing the electronic device to: determine a deletion level for data related to personal information of the passenger, the deletion level being based on a use history information of the passenger, including a latest use time and a use frequency, and the deletion level indicating a level for determining a subset or totality of information to be deleted from the personal information related data generated and/or edited by the passenger using the electronic device; and selectively delete the data related to personal information of the passenger from the memory based on the determined deletion level. determine a deletion level for data related to personal information of the passenger, the deletion level being based on a use history information of the passenger, including a latest use time and a use frequency, and the deletion level indicating a level for determining a subset or totality of information to be deleted from the personal information related data generated and/or edited by the passenger using the electronic device; and selectively delete the data related to personal information of the passenger from the memory based on the determined deletion level.