Adobe Flex 3 Help

Destroying shared objects

To destroy a SharedObject on the client, use the SharedObject.clear() method. This does not destroy directories in the default path for the application's shared objects.

The following example deletes the SharedObject file from the client:

public function destroySharedObject():void {
    mySO.clear();
}