If the data for the subform is in a separate table, you will also need to delete the data that has a relationship with the information on your main form. You can do two ways. The simpilest method is in the relationships window, set the referential integrity between the parent and child table to include Cascade Deletes. You need to use caution when using this method that you are not deleting information that you shouldn't be deleteing. The second method is to delete the information through code by creating a recordset and looping through it and deleting all records that are related to the data from your main form.
After this is said and done, be sure to requery your subform to view the update you just made (after pressing the delete button that is).
After re-reading your post, are you only trying to delete the record in the sub-form and not the main record? If that's the case, the method I provided above won't work. Let me know if that's what you are looking for.