How to clear a terrain block from layers?

Hello, how can you clear a certain terrain block of all texture layers? I just found a function that deletes from the entire landscape, but I need it from a specific block.