I’m wanting to delete a note property in two cases: 1. Delete them on all pages and as a property type. 2. Delete them from all pages, but do not delete the property itself.
Things I have tried
I referred to this page to get an answer, but “unassign type” is greyed out. Someone seemed to have a similar issue, but that wasn’t addressed in the post. I’m not sure if the problem has been fixed or is still a bug. I need to be able to delete it for good in the all properties view, but I’d also like to know how to remove it from all pages, while retaining the property itself.
I tried to edit the above to be more clear, but the time ran out for editing.
If I delete every instance of the property from every page (which I have to do manually one by one), the property disappears in the all properties view. I’d like to be able to automatically delete the property on all pages while keeping the property item in the all properties view. 2. And I’d also like to be able to delete the entire property in the all properties view, which will then delete it from all the pages. (I think now it’s not deleteable from the all properties page because I have some pages that contain that property.)
If you delete all instances of the property (with key and value), the property will not show on All Properties view.
You can remove them in batch using the Multi Properties plugin.
Click on the property in the All Properties view, which will start the search in the Search view. Click on ‘X results’ → Remove properties. Select the properties you want to remove and confirm.
This action will remove both property keys and values.
A property (key) doesn’t need a value assigned to it, though. I do that in templates with the aliases property; I can add any alias values later as I go along.
Then probably if all instances of this property key will not have a value attached to it, it will be shown on the All properties view (I have never looked and I’m not that bothered about it). As long as the property key is alive, it can be re-assigned, I presume.
If one wishes to remove only the prop values, but not the keys (i.e. the properties themselves), then I’m not sure what plugin does that. Maybe Linter can do it? (I don’t think so.)
Otherwise you can do a search and replace on the vault or on a subfolder of the vault with VSCode or other regex capable text editor and remove the key only, which probably would be as simple as:
match: (^prop_name_with_unique_name:) .+
replace: $1
Provided the values are on the same line as the key and not in a list array…