'DELETE /api/user/v1/accounts/{username}/image'

def delete(self, request, username):

    try:
        set_has_profile_image(username, False)
        profile_image_names = get_profile_image_names(username)
        remove_profile_images(profile_image_names)
        log.info(LOG_MESSAGE_DELETE, {'image_names': profile_image_names.values(), 'user_id': request.user.id})
    except UserNotFound:
        return Response(status=status.HTTP_404_NOT_FOUND)
    return Response(status=status.HTTP_204_NO_CONTENT)
