There is a way to remove the activation lock remotely through iCloud. If you are the new owner of an iPhone that still has an activation lock associated with the device, all hope is not lost. It is recommended to back up your iPhone before removing the activation lock if you are planning to restore your info to another phone.
The activation lock's main purpose is to prevent someone from gaining access to your info if your phone is lost or stolen.
If the activation lock is not removed properly from the iPhone, it renders the phone useless to anyone other than yourself. In order to allow another person access to the iPhone, you would need to remove your Apple ID activation lock. If you are looking to sell, return or replace your iPhone there are a few steps that need to happen beforehand.