Deleting instances from server using R

Hi all,
first time writing here.
I have found a way of deleting Kobo instances from the server using R.

Since I was not able to find other posts adressing this topic, I thought I would share my code here, in case anybody else finds it useful.

You can delete specific data instances from the server using the package “httr” and the following code:

instanceurl = “https://YOURSERVER/assets/YOURASSETID/submissions/YOURSUBMISSIONID
httr::DELETE(url = instanceurl, httr::authenticate(“user1”, “mypassword”))

cheers,
g

Welcome to the community, @gporrinos! Pinging @dickoa for your support with this issue.