Kill statement - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Deletes a file. You can issue this statement from the MapBasic window in MapInfo Pro.

Syntax

Kill filespec 

filespec is a string which specifies a filename (and, optionally, the file's path).

Return Value

String

Description

The Kill statement deletes a file from the disk. There is no "undo" operation for a Kill statement. Therefore, the Kill statement should be used with caution.

Example

Kill "C:\TEMP\JUNK.TXT" 

See Also:

Open File statement