- Timestamp:
- Aug 3, 2010 1:24:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r31333 r31334 5210 5210 the list of registered machines in the VirtualBox object. To delete the files which 5211 5211 belonged to the machine, including the XML file of the machine itself, call 5212 <link to="#delete"/>, optionally with the array of IMedium objects that have been 5213 returned from this method. 5214 5215 Depending on the @a cleanupMode argument, the thoroughness with with this 5216 method cleans up the machine configuration before unregistering the machine 5217 will vary. 5212 <link to="#delete"/>, optionally with the array of IMedium objects which was returned 5213 from this method. 5214 5215 How thoroughly this method cleans up the machine configuration before unregistering 5216 the machine depends on the @a cleanupMode argument. 5218 5217 5219 5218 <ul> … … 5226 5225 <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved" 5227 5226 state or if it has snapshots or media attached. All media attached to the current machine 5228 state or in snapshots will be detached. No medium objects will be closed or returned; all5229 of the machine's media will remain opened.</li>5227 state or in snapshots will be detached. No medium objects will be returned; all of the 5228 machine's media will remain open.</li> 5230 5229 <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone", 5231 5230 except that all the hard disk medium objects which were detached from the machine will … … 5235 5234 that all media will be returned in the array, including removeable media like DVDs and 5236 5235 floppies. This might be useful if the user wants to inspect in detail which media were 5237 attached to the machine.</li> 5236 attached to the machine. Be careful when passing the media array to <link to="#delete" /> 5237 in that case because users will typically want to preserve ISO and RAW image files.</li> 5238 5238 </ul> 5239 5240 This API does not verify whether the media files returned in the array are still 5241 attached to other machines (i.e. shared between several machines). If such a shared 5242 image is passed to <link to="#delete" /> however, closing the image will fail there 5243 and the image will be silently skipped. 5244 5245 A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the 5246 resulting IMedia array to <link to="#delete"/>. This way, the machine is completely 5247 deleted with all its saved states and hard disk images, but images for removeable 5248 drives (such as ISO and RAW files) will remain on disk. 5239 5249 5240 5250 The call will fail if the machine is currently locked (see <link to="ISession" />). … … 5268 5278 <desc> 5269 5279 Deletes the files associated with this machine from disk. If medium objects are passed 5270 in with the @a aMedia argument, they are closed and their storage files are deleted as well.5271 For convenience, this array of media files can be the same as the one returned from5272 a previous <a link="#unregister" /> call.5280 in with the @a aMedia argument, they are closed and, if closing was succesful, their 5281 storage files are deleted as well. For convenience, this array of media files can be 5282 the same as the one returned from a previous <link to="#unregister" /> call. 5273 5283 5274 5284 This method must only be called on machines which are either write-locked (i.e. on instances … … 5284 5294 for each online snapshot that the machine had.</li> 5285 5295 <li>On each medium object passed in the @a aMedia array, this will call 5286 <link to="IMedium::close" /> and then attempt to delete the medium's storage 5287 on disk. The close() call will fail if the medium is still in use, e.g. because 5288 it is still attached to a second machine.</li> 5296 <link to="IMedium::close" />. If that succeeds, this will attempt to delete the 5297 medium's storage on disk. Since the close() call will fail if the medium is still 5298 in use, e.g. because it is still attached to a second machine; in that case the 5299 storage will not be deleted.</li> 5289 5300 <li>Finally, the machine's own XML file will be deleted.</li> 5290 5301 </ul>
Note:
See TracChangeset
for help on using the changeset viewer.