Action to Clear Directory

Sorry to be such a nuisance, but I have read about how to do this, but nothing I could find actually told me exactly how to do this.

I want to clear the Directory field using an Action.

Here is what I have done:

Action: Remove fields
Fields to remove (semicolon-separated): DIRECTORY

This doesn't seem to work. I am wondering what I need to change to get this to work.

Any help would be really appreciated, please.

I am not sure what you intend to do.
But _DIRECTORY is no field but a property maintained by the OS.
As long as the file is there, it also has the property shown in _DIRECTORY.

What do you want to achieve with clearing the _DIRECTORY?

Thanks a lot for the reply.

I want to clear the directory so that when I share the file, it does not show the directory that I am using to store this file.

Or have I got this wrong, and it does not store this info, but rather shows the directory location automatically for the individual user on their PC?

In other words, I don't need to bother clearing the directory contents.

Is this for an export action? If so you can limit that to the filename only. You can’t remove the _Directory info, as that is fixed data from the OS, not a metadata field.

That's great thanks.

It seems that I was not really understanding what the Directory field showed.