You can delete an assignment at any time. If an assignment is deleted after the students have submitted their work, all submitted work will also be deleted.

  Click the module access icon > Academics > Assignment to open the All assignments page.

  1. Select the subject for which the assignment was given.

  1. Click the title of the assignment.

  2. Click the Delete Assignment button.

For more clarifications, please watch this.