rez.deleteResource

Syntax rez.deleteResource (path, type, ID)

Params path is the path to the file from which the resource is to be removed.

type is a string4 identifying the type of resource to be removed.

id is a number identifying the specific resource of type type to be removed.

Action Deletes the resource number ID of type type from the file at path.

Returns True if the file and resource are found and the resource is deleted, false otherwise

Examples rez.deleteResource ("System:Test File", 'curs', 46235)
» true

Platform Notes This verb is only implemented in the Mac OS version of Frontier.

Notes If you know the resource name but not its ID, you can use rez.deleteNamedResource rather than this verb.

See Also rez.deleteNamedResource

Discuss