def delete filename
      detach filename
      result = false
      mutex.synchronize do
        result = workspace.remove(filename)
        @synchronized = !result if synchronized?
      end
      result
    end
def delete filename
      detach filename
      result = false
      mutex.synchronize do
        result = workspace.remove(filename)
        @synchronized = !result if synchronized?
      end
      result
    end
Delete a file from the library. Deleting a file will make it unavailable
 for checkout and optionally remove it from the workspace unless the
 workspace configuration determines that it should still exist.

 @param filename [String]
 @return [Boolean] True if the file was deleted