Ultimately you will always want to consult with a structural engineer before making the decision to remove a wall, but there are a few tips to keep in mind to help determine the possibility of whether or not a wall can be removed.
What direction is the wall running in relation to the main support members?
If the wall is running parallel to the floor or ceiling joists then it’s less likely that the wall is load bearing. Load bearing walls typically run perpendicular to the supporting floor or ceiling joists. Using the example of a typical rectangular home, the main support beam and supporting walls typically run down the center of the home lengthwise with the floor and ceiling joists bearing on the outside and center wall.
Is the roof structure built with trusses or rafters? Newer homes built with pre-engineered, pre-manufactured roof trusses are generally designed to span large openings and are designed to be supported at each end by the exterior walls. This eliminates the need in most cases for interior load bearing walls on the uppermost level of the home.
If a wall is load bearing, it can still be removed by taking the proper measures. A support beam can be installed to help redistribute the load. Although it’s more costly, the support beam can also be installed flush with the ceiling to maintain the appearance of a completely open floor plan. Again, always consult a structural engineer before walls are removed.
For more information on load bearing walls - https://structuralengineeringbasics.com/how-to-tell-walls-load-bearing/