Automatically delete all the entries with a deleting document

Is that possible to delete all the entries (GL Entries and Stock Ledger Entries) at once with the deletion of the Document instead of going to each of those and cancelling.

Not it is currently not possible. You have to manually cancel all GL Entries for a document before the document itself can be cancelled. And no, you cannot delete cancelled GL Entries.