Include the used state when retrieving resources
Remove resources from uploaded offerings when resources are deleted
Add a test to check resource removal from uploaded offerings