v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1422181132.4 KB

Terminates the specified session. After you terminate a session, it enters the <code>TERMINATING</code> state and then the <code>TERMINATED</code> state. You can still access the Spark History Server for a terminated session through the <code>GetResourceDashboard</code> operation.

delete/applications/{applicationId}/sessions/{sessionId}

Path parameters

applicationIdstring required

The ID of the application that the session belongs to.

sessionIdstring required

The ID of the session to terminate.

Response

Success

applicationIdstring required

The output contains the application ID on which the session was terminated.

sessionIdstring required

The output contains the ID of the terminated session.