code: def test_remove_layer_shapefile(tmpdir):
      """Removal of layer in shapefile actually deletes the datasource"""
      filename = str(tmpdir.join("a_filename.shp"))
      create_sample_data(filename, "ESRI Shapefile")
      fiona.remove(filename, layer=0)
      assert not os.path.exists(filename)
  
file_path: Fiona/tests/test_remove.py
imports: import logging
  import sys
  import os
  import itertools
  from .conftest import requires_gpkg
  import pytest
  import fiona
  from fiona.errors import DatasetDeleteError
  from fiona.model import Feature
label_desc: Use image node_id 5 for calling a global function with example usage: test_remove_layer_shapefile(tmpdir) without return types