I think the whole delete flow can be simplified a bit. In most widgets that do things like this we have a function `deleteResources` that takes in an Array of resources to delete. There's a function `deleteResource` inside that will handle one resource at a time. In this case when `deleteContent` or `deleteDiscussion` is done it would check if it needs to do more and call `deleteResource` with the next resource to delete.

I think this makes it more readable and easier to maintain as everything is confined into one function. it also makes it easy to update the error/success/spinner icons synchronously etc. What do you think?