alphagov/forms-api

Deleting a form should delete its attached pages

DavidBiddle opened this issue · 0 comments

Currently attempting to delete a form with pages results in a 500 error. I would expect this to delete the form and all of its pages.

We could do this in the admin app (i.e. find the pages for the form and send delete requests for them, before sending a delete request for the form) but this seems quite inefficient as it will result in lots of separate requests to the API.