how do i create editor-only resources?

lets say i created a custom editor of a resource, i want to save the state of the editor in a file so when i open it later it returns to the same state, but lets say i dont want this file to go to the final build when i export the game, i want this file to get stripped automatically when the game exports so it only lives inside the editor

is there something to help me with this? or do i have to manually delete these files before i export it?

In the Export dialog there is a Resources tab that allows you to specifically include or exclude files to be exported. As long as your editor-only files are in a dedicated folder or have some naming convention you can wildcard you should be okay.

The example below shows all the files under the addons folder being excluded.