Retreat from ledge and end, pulling back from both (7)
I believe the answer is:
shelter
'retreat' is the definition.
(shelter can mean a retreat or hideout)
I cannot understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for shelter that I've seen before include "Give protection" , "Roof" , "retreat" , "Sanctuary; protect" , "Let hers go into shielded place" .)