The present application discloses a cache elimination method, which includes: setting a first queue and a second queue, wherein the first queue is used to maintain cached data and a unique code corresponding to each of the data, the second queue The queue is used to maintain the code and the query rate per second of each of the data; receive the code of the data to be queried; initiate a query operation to the first queue according to the code, and if the code is not queried The first queue and the second queue are updated during encoding, and the cold data in the first queue is eliminated. The present application also discloses a cache elimination system, an electronic device and a computer-readable storage medium. In this way, hot data sets, warm data sets and cold data sets in the queue can be effectively distinguished, the accuracy of elimination can be improved, and cached data of historical access records can be eliminated without a large number of data accesses.