Add function to delete hidden buffers