def remove_ocs_object_from_list(kind, resource_name, object_list):
    """
    Given a list of OCS objects, the function removes the object with kind and resource from the list

    Args:
        kind (str): resource kind like CephBlockPool, pvc.
        resource_name (str): name of the resource.
        object_list (array): Array of OCS objects.

    Returns:
        (array): Array of OCS objects without removed object.

    """

    for obj in object_list:
        if obj.name == resource_name and obj.kind == kind:
            object_list.remove(obj)
            return object_list