Server-side delete FLV

If use other Server-side Program to delete the just recorded FLV, FlashCom may lock the file and cannot successfully delete. The correct way to do it is using SSAS:
[code lang=”actionscript”]var s = Stream.get(”flvName”);
if (s) {
s.onStatus = function(info) {
if (info.code == “NetStream.Clear.Success”) {
trace(”Stream cleared successfully.”);
if (info.code == “NetStream.Clear.Failed”) {
trace(”Failed to clear stream.”);
Caution: flvName does not need extension(.flv).