Remove matrix