A garbage data scrubbing method, applied to a terminal, wherein the terminal comprises a storage device, and the method comprises: obtaining an input output IO busy/idle status of the terminal at a current moment, wherein the IO busy/idle status comprises a busy state and an idle state; if the IO busy/idle status of the terminal obtained at the current moment is the idle state, delivering a discard message to the storage device, characterized in that the discard message comprises an initial address and a size of to-be-scrubbed physical space in the storage device, and the discard message is used to unbind a mapping relationship between a physical address of the to-be-scrubbed physical space and a corresponding logical address, wherein before the delivering a discard message to the storage device, the method further comprises: either option A, obtaining a policy set, wherein the policy set comprises one or more of the following sub-policies: a quantity of discard messages sent at a single time, a granularity lower limit of the sent discard message, a sending interval between the discard messages sent twice, whether sending the discard message again needs to wait for the storage device to complete processing the discard message sent previously, and a priority of sending the discard message, wherein the delivering a discard message to the storage device comprises: delivering the discard message to the storage device based on the policy set; or option B, obtaining a life loss of the storage device in each of available granularities, wherein the available granularity is a preset granularity, and determining a priority of each granularity based on the life loss of the storage device in each granularity, wherein the delivering the discard message to the storage device comprises: sending the discard message based on the priority of each granularity. obtaining an input output IO busy/idle status of the terminal at a current moment, wherein the IO busy/idle status comprises a busy state and an idle state; if the IO busy/idle status of the terminal obtained at the current moment is the idle state, delivering a discard message to the storage device, characterized in that the discard message comprises an initial address and a size of to-be-scrubbed physical space in the storage device, and the discard message is used to unbind a mapping relationship between a physical address of the to-be-scrubbed physical space and a corresponding logical address, wherein before the delivering a discard message to the storage device, the method further comprises: either option A, obtaining a policy set, wherein the policy set comprises one or more of the following sub-policies: a quantity of discard messages sent at a single time, a granularity lower limit of the sent discard message, a sending interval between the discard messages sent twice, whether sending the discard message again needs to wait for the storage device to complete processing the discard message sent previously, and a priority of sending the discard message, wherein the delivering a discard message to the storage device comprises: delivering the discard message to the storage device based on the policy set; or option B, obtaining a life loss of the storage device in each of available granularities, wherein the available granularity is a preset granularity, and determining a priority of each granularity based on the life loss of the storage device in each granularity, wherein the delivering the discard message to the storage device comprises: sending the discard message based on the priority of each granularity. either option A, obtaining a policy set, wherein the policy set comprises one or more of the following sub-policies: a quantity of discard messages sent at a single time, a granularity lower limit of the sent discard message, a sending interval between the discard messages sent twice, whether sending the discard message again needs to wait for the storage device to complete processing the discard message sent previously, and a priority of sending the discard message, wherein the delivering a discard message to the storage device comprises: delivering the discard message to the storage device based on the policy set; or option B, obtaining a life loss of the storage device in each of available granularities, wherein the available granularity is a preset granularity, and determining a priority of each granularity based on the life loss of the storage device in each granularity, wherein the delivering the discard message to the storage device comprises: sending the discard message based on the priority of each granularity.