For religious orders, it is as CarmeliteGirl said. It would depend on how long ago and the reasons for it.
Entering bankrupcy to clear out any debt so one could pursue the religious life/studies for the priesthood would be a big red flag for any vocations directors.