Removes a resource from the resource fork of a Mac OS file.
# Metadata
Platforms: desktop OS: mac Introduced: 1.0 Security: disk
# Syntax
deleteResource(file, resourceType,{resourceID | resourceName})
# Params
- file : The name and location of the file containing the resource. If you specify a name but not a location, LiveCode assumes the file is in the defaultFolder. - resourceType : The 4-character type of the resource you want to delete. - resourceID : An integer that specifies the resource ID of the resource you want to delete. - resourceName : The name of the resource you want to delete.
# Examples
get deleteResource("New Build","ICN#",129)
put deleteResource(line x of theFiles,"XFCN","Colorize") into temp
# Description
Use the deleteResource function to delete a resource from a file.
The deleteResource function deletes individual resources within the file, but does not delete the resource fork.
# Tags
# See
- **keyword:** file - **property:** externals - **command:** delete - **function:** result, setResource - **control structure:** function - **glossary:** resource fork, resource, Mac OS, return