implement delete hooks in file versions lib