Deleted Files (.d* extension)

I’ve recovered an old owncloud server and I’m looking at its trashbin.

All files and directories on the top level has an added extension .d*

What is this extension for?

Anyone know a nice bash command to remove this arbitrary extension?

this command works:

for x in *.d1*; do echo mv "$x" "${x%.*}; done