public void removeExtension ( DefaultLocalExtension extension ) throws IOException { File descriptorFile = extension . getDescriptorFile ( ) ; if ( descriptorFile == null ) { throw new IOException ( "Exception does not exists" ) ; } descriptorFile . delete ( ) ; DefaultLocalExtensionFile extensionFile = extension . getFile ( ) ; extensionFile . getFile ( ) . delete ( ) ; }
Remove extension from storage .