Skip To Content

Remove Files From LAS Dataset


Removes one or more LAS files and surface constraint features from a LAS dataset.


  • File paths must use the folder separator associated with the operating system.

  • Only a folder that directly contains LAS files can be provided as an input. When a folder is specified, all LAS files that reside in that folder will be removed from the LAS dataset.

  • Surface constraint features only have to be cited by their name. For example, boundary.shp and sample.gdb/boundary would just be referred to as boundary.


RemoveFilesFromLasDataset_management (in_las_dataset, {in_files}, {in_surface_constraints})
ParameterExplanationData Type

The LAS dataset to process.

LAS Dataset Layer

The name of the LAS files or folders containing LAS files whose reference will be removed from the LAS dataset.


The name of the surface constraint features that will be removed from the LAS dataset.


Code sample

RemoveFilesFromLasDataset example 1 (Python window)

The following sample demonstrates the use of this tool in the Python window.

import arcpy
from arcpy import env

env.workspace = "C:/data"
                                           "LA_N; LA_S/LA_5S4E.las",
                                           "boundary.shp; streams.shp")
RemoveFilesFromLasDataset example 2 (stand-alone script)

The following sample demonstrates the use of this tool in a stand-alone Python script.

Name: Modify Files in LAS Dataset& Calculate Stats for LASD
Description: Adds files & surface constraints to a LAS dataset, then
             calculates statistics and generates report.
# Import system modules
import arcpy

    # Script variables
    arcpy.env.workspace = 'C:/data'
    lasd = 'sample.lasd'
    oldLas = ['2006', '2007/file2.las']
    newLas = ['2007_updates_1', '2007_updates_2']
    oldSurfaceConstraints = ['boundary.shp', 'streams.shp']
    newSurfaceConstraints = [['sample.gdb/boundary', '<None>',
                             ['sample.gdb/streams', 'Shape.Z',
                              'Hard_Line']], oldLas,
                                               oldSurfaceConstraints), newLas, 'RECURSION',
                                          newSurfaceConstraints), "UPDATED_FILES",
                                          "LAS_FILE", "DECIMAL_POINT",
                                          "SPACE", "LAS_summary.txt")
except arcpy.ExecuteError:
except Exception as err:


Licensing information

  • ArcGIS Desktop Basic: Requires 3D Analyst or Spatial Analyst
  • ArcGIS Desktop Standard: Yes
  • ArcGIS Desktop Advanced: Yes

Related topics