code: def remove_resource_file(issue, filepath, ignore_layouts):
      
      if os.path.exists(filepath) and (ignore_layouts is False or issue.elements[0][0] != 'layout'):
          print('removing resource: {0}'.format(filepath))
          os.remove(os.path.abspath(filepath))
docs: Delete a file from the filesystem