Captain, unfortunately, it seems you've made a mistake.
There are two options - delete and claim/cancel, once you pick delete there are two warnings (the first one - "Items and gold from contract will be lost", the second - "All items and gold will be lost").
In case you wanted to keep medkits, you had to pick claim/cancel option, in that case you would get them back into your warehouse