Income taxes - Unrecognized tax benefits (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Jan. 31, 2021 |
Jan. 31, 2020 |
|
| Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward] | ||
| Unrecognized income tax benefits, opening balance | $ 0 | $ 1,000 |
| Increase for income tax positions of prior years | 0 | 0 |
| Lapse of statute of limitations | 0 | (1,000) |
| Unrecognized income tax benefits, ending balance | $ 0 | $ 0 |