Abstract:The text editor for internet has been widely used in web projects. In view of the problem how to clean up the corresponding disk files in the server when deleted the objects of the image,audio and video from the content in the editor, a general-purpose sulotion application on Java EE platform was put forward. Based on filters or interceptor mechanism, it could automatically clean up the attachments loaded to the server but of no use whenever the eidt was over. Taking the FCKeditor application for example, the software implementation technology and method was introduced in detail. The cleaning was transparent to user. The sulution is safe and reusable, and also easy to implement. It can effectively apply in various types of web projects related to content publishing.