5. A computer-readable storage medium encoded with instructions to process streams of data using continuous queries, the instructions comprising: instructions to receive an identity of a first continuous query to be deleted; instructions to check if an output of the first continuous query is used by any view among a predetermined plurality of views, thereby to obtain a first result; instructions to check if the first continuous query receives input from any view among the predetermined plurality, thereby to obtain a second result; instructions responsive to each of the first result and second result being false, to further check if an operator used by the first continuous query is also used by any other continuous query, thereby to obtain a third result; and instructions responsive to the third result being true, to remove any reference to the first continuous query from the operator; instructions responsive to the third result being false, to de-schedule execution of the operator, to drop any output queue of the operator, and to drop any store of the operator; instructions to delete input data still to be processed by the operator if a first queue, holding the input data, is shared with another operator and alternatively to mark the first queue for deletion if the first queue is not shared; and instructions to delete output data generated by the first continuous query, from a store if an owner of the store is shared by other queries and alternatively to mark said store for deletion if the store is not shared.
5. A computer-readable storage medium encoded with instructions to process streams of data using continuous queries, the instructions comprising: instructions to receive an identity of a first continuous query to be deleted; instructions to check if an output of the first continuous query is used by any view among a predetermined plurality of views, thereby to obtain a first result; instructions to check if the first continuous query receives input from any view among the predetermined plurality, thereby to obtain a second result; instructions responsive to each of the first result and second result being false, to further check if an operator used by the first continuous query is also used by any other continuous query, thereby to obtain a third result; and instructions responsive to the third result being true, to remove any reference to the first continuous query from the operator; instructions responsive to the third result being false, to de-schedule execution of the operator, to drop any output queue of the operator, and to drop any store of the operator; instructions to delete input data still to be processed by the operator if a first queue, holding the input data, is shared with another operator and alternatively to mark the first queue for deletion if the first queue is not shared; and instructions to delete output data generated by the first continuous query, from a store if an owner of the store is shared by other queries and alternatively to mark said store for deletion if the store is not shared. 6. The computer-readable storage medium of claim 5 further comprising: instructions responsive to the first result being true, to return without changing execution of the first continuous query.