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.
- Select the subject for which the assignment was given.
- Click the title of the assignment.
- Click the Delete Assignment button.
For more clarifications, please watch this.