public void deleteRecording(String recordingId) throws OpenViduJavaClientException, OpenViduHttpException {
		HttpDelete request = new HttpDelete(OpenVidu.urlOpenViduServer + API_RECORDINGS + "/" + recordingId);
		HttpResponse response;
		try {
			response = OpenVidu.httpClient.execute(request);
		} catch (IOException e) {
			throw new OpenViduJavaClientException(e.getMessage(), e.getCause());
		}

		try {
			int statusCode = response.getStatusLine().getStatusCode();
			if (!(statusCode == org.apache.http.HttpStatus.SC_NO_CONTENT)) {
				throw new OpenViduHttpException(statusCode);
			}
		} finally {
			EntityUtils.consumeQuietly(response.getEntity());
		}
	}
public void deleteRecording ( String recordingId ) throws OpenViduJavaClientException , OpenViduHttpException { HttpDelete request = new HttpDelete ( OpenVidu . urlOpenViduServer + API_RECORDINGS + "/" + recordingId ) ; HttpResponse response ; try { response = OpenVidu . httpClient . execute ( request ) ; } catch ( IOException e ) { throw new OpenViduJavaClientException ( e . getMessage ( ) , e . getCause ( ) ) ; } try { int statusCode = response . getStatusLine ( ) . getStatusCode ( ) ; if ( ! ( statusCode == org . apache . http . HttpStatus . SC_NO_CONTENT ) ) { throw new OpenViduHttpException ( statusCode ) ; } } finally { EntityUtils . consumeQuietly ( response . getEntity ( ) ) ; } }
Deletes a recording. The recording must have status
{@link io.openvidu.java.client.Recording.Status#stopped} or
{@link io.openvidu.java.client.Recording.Status#available}

@param recordingId The id property of the recording you want to delete

@throws OpenViduJavaClientException
@throws OpenViduHttpException       Value returned from
{@link io.openvidu.java.client.OpenViduHttpException#getStatus()}
<ul>
<li><code>404</code>: no recording exists
for the passed <i>recordingId</i></li>
<li><code>409</code>: the recording has
<i>started</i> status. Stop it before
deletion</li>
</ul>