Removes the latest version of an object if the version id is null. If versioning is enabled, inserts a delete marker, which becomes the latest version of the object.