scipy.sparse.dok_matrix.

clear#

dok_matrix.clear()[source]#

Remove all items from the dict.