Delete a form submission so that it doesnt get pulled through the API?

Is there a simple way to delete a form submission so that it no longer gets pulled through on the form API? Would archiving the form submission achieve the same result? From a bit of searching the only way to delete data it seems is by creating a user and then assigning those forms to him and deleting the user. Is this still the only way to delete a form submission?

Hi Calvin

The only way to delete a form submissions is as you described however archiving a submission will remove it from API results (provided you are not passing the include_archived param).

Archiving a form will also undo any changes the form has made to cases as described in the docs: https://confluence.dimagi.com/display/commcarepublic/Archive+Forms

Thats perfect, thank you Simon for confirming that. Super appreciate it!