Cm purge with wildcard filenames

Hey there, is it possible to somehow use a wildcard for cm purge instead of a file extension (e.g. _BuiltData.uasset)?

In Unreal Engine every asset is *.uasset, so file extension filter does not help much here :smile:

Hi Kristof,

So, would you like to specify a particular file to be purged?
I’m afraid the command doesn’t support that.
What is the use case here? Maybe we have an alternative way of doing it.

Best,
Héber.

Hey there, no, not a particular file, but every file that matches a wildcard. For example, file names ending with _BuiltData.uasset, since they can always be recompiled (and are very big and occupy our storage), so we don’t need more than the last revision.

Supporting wildcards or more advanded filter rules would be a great improvement. Could you open the feature request here?
https://portal.productboard.com/m8i3g2dqrmywvbqnkdmzeauv/c/819-didn-t-find-what-you-were-looking-for

How about just the simple case of deleting a whole folder of files which shouldn’t have been committed? Why is this not considered a common use case?

Hi,

For that scenario, I would recommend using the “cm archive” command.
This article has more information on both options.

Best,
Héber.