Remove Active Texture from Mesh's UV Set

I’m trying to remove the texture from a mesh’s UV set, but can’t seem to find the right function. Right now I’m using bpy.ops.mesh.uv_texture_remove(), which removes the texture and UVs entirely, but I’d prefer to preserve the UVs, and just disconnect the texture from the mesh.

Basically, I want to call the function this ‘x’ button calls.