Instagram\Instagram::removeProfilePicture PHP Method

removeProfilePicture() public method

Remove Profile Picture
public removeProfilePicture ( ) : ChangeProfilePictureAccountResponse
return Instagram\API\Response\ChangeProfilePictureAccountResponse
    public function removeProfilePicture()
    {
        if (!$this->isLoggedIn()) {
            throw new InstagramException("You must be logged in to call removeProfilePicture().");
        }
        $request = new RemoveProfilePictureAccountRequest($this);
        $response = $request->execute();
        if (!$response->isOk()) {
            throw new InstagramException(sprintf("Failed to removeProfilePicture: [%s] %s", $response->getStatus(), $response->getMessage()));
        }
        return $response;
    }