A refrigeration cycle apparatus comprising: an outdoor heat exchanger ; a compressor ; an accumulator ; an indoor heat exchanger ; an expansion valve ; 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 ; a refrigerant circuit configured to circulate a refrigerant through the compressor , the outdoor heat exchanger , the expansion valve , and the indoor heat exchanger ; a first shutoff valve provided between the outdoor heat exchanger and the expansion valve in the refrigerant circuit; and a refrigerant leakage detection device configured to detect refrigerant leakage from the refrigerant circuit, wherein when the refrigerant leakage is detected by the refrigerant leakage detection device , 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 , the indoor heat exchanger , and the accumulator , the expansion valve 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 , the expansion valve , 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 ; an expansion valve ; 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 ; a refrigerant circuit configured to circulate a refrigerant through the compressor , the outdoor heat exchanger , the expansion valve , and the indoor heat exchanger ; a first shutoff valve provided between the outdoor heat exchanger and the expansion valve in the refrigerant circuit; and a refrigerant leakage detection device configured to detect refrigerant leakage from the refrigerant circuit, wherein when the refrigerant leakage is detected by the refrigerant leakage detection device , 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 , the indoor heat exchanger , and the accumulator , the expansion valve 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 , the expansion valve , the first shutoff valve , the outdoor heat exchanger , and the accumulator , and the first shutoff valve is closed. <EOS>