End of Life guidelines for apps

Is there any apple recommended steps for a developer to follow when deciding to EOL their app in the app store? Is there an article or documentation somewhere? Do we need to provide refunds for recent purchases?