Updated datasetDeleter to fix some bugs

exporter should be datasetDeleter in the commit message.

fixes voor bugs  #906 and #926.

Not all metadata is removed, this behaviour is not introduced neither is it fixed in this commit, a new issue is in place to report this behaviour. (#973)