If you have dependencies between resources, they will be deleted in reverse dependency order. That dependency should in general have been necessary to get into this situation in the first place (else you could have had issues creating your stack if the thing using the other thing ended up being created first).
Abstractly - dependencies are what you want here - but the details of your particular situation may matter for the exact answer.