delete

public Unit delete()

Deletes this entity. The meaning of deletion depends on the filesystem implementation. Regardless of the implementation, after using delete the result of exists must be false

Throws

if an I/O Error occurs during the deletion