add ability to unregister a preset

fix #7218
Merge pull request #7251 from Carreau/unregister-preset

add ability to unregister a preset