A refrigeration cycle apparatus comprising: an outdoor heat exchanger; a compressor; an accumulator; an indoor heat exchanger (20A, 20B); an expansion valve (111A, 111B); a control device; a four-way valve connected to an outlet of the compressor, an inlet of the accumulator, the outdoor heat exchanger, and the indoor heat exchanger (20A, 20B); a refrigerant circuit configured to circulate a refrigerant through the compressor, the outdoor heat exchanger, the expansion valve (111A, 111B), and the indoor heat exchanger (20A, 20B); a first shutoff valve provided between the outdoor heat exchanger and the expansion valve (111A, 111B) in the refrigerant circuit; and a refrigerant leakage detection device (4A, 4B) configured to detect refrigerant leakage from the refrigerant circuit, wherein when the refrigerant leakage is detected by the refrigerant leakage detection device (4A, 4B), the control device is configured to perform a first mode operation to operate the compressor in such a state that the refrigerant circulates in order of the compressor, the outdoor heat exchanger, the first shutoff valve, the expansion valve (111A, 111B), the indoor heat exchanger (20A, 20B), and the accumulator, the expansion valve (111A, 111B) is opened, and the first shutoff valve is closed, and the control device is further configured to perform, after performing the first mode operation, a second mode operation to move the refrigerant from the outdoor heat exchanger to the accumulator to operate the compressor for a predetermined time in such a state that the refrigerant circulates in order of the compressor, the indoor heat exchanger (20A, 20B), the expansion valve (111A, 111B), the first shutoff valve, the outdoor heat exchanger, and the accumulator, and the first shutoff valve is closed. an outdoor heat exchanger; a compressor; an accumulator; an indoor heat exchanger (20A, 20B); an expansion valve (111A, 111B); a control device; a four-way valve connected to an outlet of the compressor, an inlet of the accumulator, the outdoor heat exchanger, and the indoor heat exchanger (20A, 20B); a refrigerant circuit configured to circulate a refrigerant through the compressor, the outdoor heat exchanger, the expansion valve (111A, 111B), and the indoor heat exchanger (20A, 20B); a first shutoff valve provided between the outdoor heat exchanger and the expansion valve (111A, 111B) in the refrigerant circuit; and a refrigerant leakage detection device (4A, 4B) configured to detect refrigerant leakage from the refrigerant circuit, wherein when the refrigerant leakage is detected by the refrigerant leakage detection device (4A, 4B), the control device is configured to perform a first mode operation to operate the compressor in such a state that the refrigerant circulates in order of the compressor, the outdoor heat exchanger, the first shutoff valve, the expansion valve (111A, 111B), the indoor heat exchanger (20A, 20B), and the accumulator, the expansion valve (111A, 111B) is opened, and the first shutoff valve is closed, and the control device is further configured to perform, after performing the first mode operation, a second mode operation to move the refrigerant from the outdoor heat exchanger to the accumulator to operate the compressor for a predetermined time in such a state that the refrigerant circulates in order of the compressor, the indoor heat exchanger (20A, 20B), the expansion valve (111A, 111B), the first shutoff valve, the outdoor heat exchanger, and the accumulator, and the first shutoff valve is closed.