FME Server .NET API

IFMERepository.RemoveResource Method 

Removes the resource item identified by the specified resource name.

[Visual Basic]
Function RemoveResource( _
   ByVal itemName As String, _
   ByVal resourceName As String _
) As Boolean
[C#]
bool RemoveResource(
   string itemName,
   string resourceName
);

Parameters

itemName
the unique name of the repository item. For example, "foo.fmw".

The types of repository items supported are:

Item TypeDescription
WorkspaceSpecified with an "fmw" extension. ie. foo.fmw
Custom FormatSpecified with a "fds" extension. ie. foo.fds
Custom TransformerSpecified with a "fmx" extension. ie. foo.fmx

resourceName
the unique name of the resource. For example, "foo.fmx", "mycoords.csv", etc

Return Value

true if resource existed and was removed, otherwise false if resource did not exist

Exceptions

Exception TypeCondition
Safe.FMEServer.API.FMEServerExceptionif a FME Server exception occurred

See Also

IFMERepository Interface | IFMERepository Members | Safe.FMEServer.API Namespace