i need to start using invoke-webrequest command as it allows collection of the status code instead of invoke-restmethod
this is because IRM doesn't have any returned json for a delete method, so the only way to test a delete method is to try a get. this doesn't make sense.
I am wondering is there a way to have more control over Collection creation as at the moment it is missing index setup as well as TTL (time to live).
TTL value setup is quite useful once there is data retention policies and it eases maintenance routines like removing outdated data from the data sets.